server { listen 80 default_server; server_name _; client_max_body_size 1200m; client_body_timeout 1800s; # Report-only first: the legacy JSP pages still rely on inline scripts. # Legacy Vue's full build uses eval; keep this only in report-only until it is replaced. add_header Content-Security-Policy-Report-Only "script-src 'self' 'unsafe-inline' 'unsafe-eval' https://answer.eol.cn https://robot.chaoxing.com https://wpa.b.qq.com; object-src 'none'; base-uri 'self'; frame-ancestors 'self';" always; add_header X-Content-Type-Options nosniff always; add_header Referrer-Policy strict-origin-when-cross-origin always; add_header X-Frame-Options SAMEORIGIN always; location ~ ^/web/subassembly/.*/backup/ { return 404; } location = /apps/workbench { return 302 /apps/workbench/; } location / { proxy_pass http://172.17.0.1:8080; proxy_set_header Host $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; proxy_set_header X-Forwarded-Port 80; proxy_set_header X-Forwarded-Host $host; proxy_connect_timeout 60s; proxy_send_timeout 1800s; proxy_read_timeout 1800s; } }