a_Z
1
server {
listen 80;
server_name nebula-studio.xxx.xxx.com;
location / {
proxy_pass http://127.0.0.1:7001/;
}
location /nebula_ws {
proxy_pass http://127.0.0.1:7001/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
steam
2
看报错的话是 websocket 建立连接失败了,所有经过 nginx 的环节都需要检查下是否支持了 websocket 哦
a_Z
5
这是我的nginx配置
server {
listen 80;
server_name nebula-studio.xxx.xx.com;
location / {
proxy_pass http://127.0.0.1:7001/;
}
location /nebula_ws {
proxy_pass http://127.0.0.1:7001/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
wey
6
我用一样的配置(带的 tls)拉的 nightly build 不能重现问题,wss://
一切正常,nginx 那边有什么报错?

a_Z
7
2024/02/01 18:26:31 [info] 147295#0: *4894309 client 10.253.10.92 closed keepalive connection
2024/02/01 18:26:31 [info] 147294#0: *4894307 client 10.253.10.92 closed keepalive connection
2024/02/01 18:26:31 [info] 147295#0: *4894301 client 10.253.10.92 closed keepalive connection
显示是客户端关闭连接
system
关闭
8
此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。