nebula-graph-studio v3.8在 服务器 报 Websocket URL empty 错误


image

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";
    }

}

你看下思为的这个有没有用:NebulaGraph Studio Nginx 部署

试过了 不行


看报错的话是 websocket 建立连接失败了,所有经过 nginx 的环节都需要检查下是否支持了 websocket 哦

这是我的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";
    }

}

我用一样的配置(带的 tls)拉的 nightly build 不能重现问题,wss:// 一切正常,nginx 那边有什么报错?

Screenshot 2024-02-01 at 10.38.53

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

显示是客户端关闭连接

此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。