worker_processes auto; pid /tmp/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; sendfile on; client_max_body_size 512m; server { listen 3000; server_name _; root /usr/share/nginx/html; index index.html; location ~ ^/(api|audio|editor|blog|demucs-web)(/|$) { proxy_pass http://127.0.0.1:3001; 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_buffering off; proxy_read_timeout 1800s; proxy_send_timeout 1800s; } location / { try_files $uri $uri/ /index.html; } } }