Nginx代理 Springboot中有websocket 4
作者:
Morgan7 | 来源:发表于
2019-08-05 11:46 被阅读0次
解决方法 Nginx配置
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 60;
proxy_read_timeout 600;
proxy_send_timeout 600;
proxy_set_header Origin '';
}
本文标题:Nginx代理 Springboot中有websocket 4
本文链接:https://www.haomeiwen.com/subject/msgpdctx.html
网友评论