Files
reTraining/frontend/nginx.conf
T

30 lines
787 B
Nginx Configuration File

server {
listen 80;
server_name _;
# A base model upload is a whole .pt checkpoint; the default 1 MB would
# reject every one of them.
client_max_body_size 512m;
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;
}
}