map $http_upgrade $connection_upgrade { default upgrade; '' close; } server { listen 80; server_name _; root /usr/share/nginx/html; client_max_body_size 0; location /admin-api/ { # The backend runs on Windows, not inside this Linux container. proxy_pass http://host.docker.internal:48090; proxy_http_version 1.1; proxy_connect_timeout 10s; proxy_read_timeout 3600s; proxy_send_timeout 3600s; proxy_buffering off; proxy_cache off; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } location /open-api/ { proxy_pass http://host.docker.internal:48090; proxy_connect_timeout 10s; proxy_read_timeout 3600s; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } location /infra/ws { proxy_pass http://host.docker.internal:48090; proxy_http_version 1.1; proxy_read_timeout 3600s; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_set_header Host $http_host; } location = /index.html { add_header Cache-Control "no-store"; } location / { try_files $uri $uri/ /index.html; } }