nginx配置websocket请求

location /ws/ {
            proxy_http_version 1.1; 
        proxy_pass http://127.0.0.1:8080/; 
        proxy_set_header Upgrade "websocket";
        proxy_set_header Connection "Upgrade";
        }    

 

posted @ 2021-12-31 15:09  炫舞风中  阅读(83)  评论(0编辑  收藏  举报