6f5e9166e1
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
42 lines
1.3 KiB
Nginx Configuration File
42 lines
1.3 KiB
Nginx Configuration File
events {}
|
|
http {
|
|
include mime.types;
|
|
|
|
server {
|
|
listen 8280;
|
|
access_log /dev/null;
|
|
error_log /dev/null;
|
|
|
|
# Forward backend API/proxy calls so absolute frontend-host URLs in
|
|
# manifests (e.g. /proxy/stream/sub/...) continue to work.
|
|
location /api/ {
|
|
proxy_pass http://safetwitch-backend:7000/api/;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
|
|
location /proxy/ {
|
|
proxy_pass http://safetwitch-backend:7000/proxy/;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header Range $http_range;
|
|
proxy_set_header If-Range $http_if_range;
|
|
proxy_buffering off;
|
|
proxy_request_buffering off;
|
|
proxy_max_temp_file_size 0;
|
|
proxy_read_timeout 1h;
|
|
proxy_send_timeout 1h;
|
|
add_header Accept-Ranges bytes always;
|
|
}
|
|
|
|
location / {
|
|
root /app;
|
|
index index.html;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|
|
} |