update 优化 设置nginx sse相关代理参数

2.X
疯狂的狮子Li 6 months ago
parent 7f4445eb50
commit ef1eb1eae2

@ -71,10 +71,13 @@ http {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# websocket参数 proxy_read_timeout 86400s;
# sse websocket参数
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
proxy_buffering off;
proxy_cache off;
proxy_pass http://server/; proxy_pass http://server/;
} }

Loading…
Cancel
Save