nginx支持ws

nginx 支持ws

在需要的 server.location 下添加添加

1
2
3
4
5
6
7
8
9
server {

location xxx {
# ws
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}