2309e9f43a
Five-service streaming platform: auth, catalogue, streaming, ingest, thumbnailer. Includes React frontend served by nginx, NATS JetStream event bus, aiobotocore async S3, PyAV video metadata + thumbnail extraction, service-to-service JWT auth, and a full unit + e2e test suite.
44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
upstream streaming_pool { server streaming:8000; }
|
|
upstream catalogue_pool { server catalogue:8000; }
|
|
upstream auth_pool { server auth:8000; }
|
|
upstream ingest_pool { server ingest:8000; }
|
|
|
|
server {
|
|
listen 80;
|
|
client_max_body_size 4G;
|
|
|
|
location /api/v1/stream/ {
|
|
proxy_pass http://streaming_pool/v1/stream/;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_buffering off;
|
|
proxy_request_buffering off;
|
|
}
|
|
|
|
location /api/v1/catalogue/ {
|
|
proxy_pass http://catalogue_pool/v1/catalogue/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
|
|
location /api/v1/auth/ {
|
|
proxy_pass http://auth_pool/v1/auth/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
|
|
location /api/v1/ingest/ {
|
|
proxy_pass http://ingest_pool/v1/ingest/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_request_buffering off;
|
|
proxy_read_timeout 300s;
|
|
}
|
|
|
|
location / {
|
|
root /usr/share/nginx/html;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|