# nginx configuration for Docker upstream api_server { server janet-backend:5000; } server { listen 80 default_server; root /usr/share/nginx/html; index index.html; error_page 500 502 503 504 /50x.html; location / { try_files $uri $uri/ /index.html; add_header Cache-Control "no-cache"; } location /health { access_log off; add_header 'Content-Type' 'application/json'; return 200 '{"status":"UP"}'; } location /static { expires 1y; add_header Cache-Control "public"; } location /api { proxy_pass http://api_server; proxy_read_timeout 36000; proxy_connect_timeout 36000; proxy_send_timeout 36000; send_timeout 36000; } }