nginx 反向代理配置 ws/wss
不管你用的是 http 还是 httpsnginx 配置增加, ws.logs 这个就是你编写的 ws 地址,那么 nginx 配置对应的 path 也是这个
sh
location /ws.logs {
proxy_pass http://127.0.0.1:1681/ws.logs;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}