参考:
https://blog.csdn.net/zqh123zqh/article/details/112795608
添加:
proxy_read_timeout 600s;
例如:
server {listen 80;server_name carrefourzone.senguo.cc;#error_page 502 /static/502.html;location /static/ {root /home/chenming/Carrefour/carrefour.senguo.cc/source;expires 7d;}location / {proxy_pass_header Server;proxy_set_header Host $http_host;proxy_redirect off;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Scheme $scheme;proxy_pass http://127.0.0.1:9887;proxy_http_version 1.1;proxy_set_header Upgrade "websocket";proxy_set_header Connection "Upgrade";proxy_read_timeout 600s; }
}