Files
reTraining/frontend/nginx.conf
T

30 lines
804 B
Nginx Configuration File

server {
listen 80;
server_name _;
# Uploads are multi-GB: whole .pt checkpoints and multi-GB videos; the
# default 1 MB would reject every one of them.
client_max_body_size 20g;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://backend:8000;
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;
# Video seeking and job logs both want bytes as they come, not after
# nginx has collected a full buffer.
proxy_buffering off;
proxy_request_buffering off;
proxy_read_timeout 3600s;
}
}