Files
videodownloader/apps/web/nginx.conf
dariusz ab2cd510a6
All checks were successful
deploy / deploy (push) Successful in 1m3s
style: usun em-dashe z calego repo (zamiana na zwykly mylnik)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 11:47:17 +02:00

26 lines
652 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# API + SSE (strumień logów) - bez buforowania, długie timeouty na pobieranie
location /api/ {
proxy_pass http://api:3000;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Connection '';
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
chunked_transfer_encoding off;
}
# SPA fallback
location / {
try_files $uri $uri/ /index.html;
}
}