天天看点

nginx配置websocket代理

`server { listen 80; server_name ws.repo;

location / { proxy_pass http://127.0.0.1:3000/; proxy_redirect off;

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
           

} }`

版权声明:本文为CSDN博主「weixin_33859665」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.csdn.net/weixin_33859665/article/details/91941035