nginx反向代理webSocket配置

参考文章
https://www.jianshu.com/p/0244dfd135c9

    upstream ws_in {
#      server 172.17.100.11:8054;
      server 172.17.100.12:8054;
    }
        location /websocket {
            proxy_pass http://ws_in;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "Upgrade";
            proxy_set_header X-Real-IP $remote_addr;
         }

你可能感兴趣的:(nginx,linux,nginx,websocket,linux)