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";
        }    
原文地址:https://www.cnblogs.com/cq-yangzhou/p/15753195.html