ckck 发表于 2024 年 10 月 21 日 15:02:55

哪吒探针出现 实时通道断开 问题的解决

将以下代码加入哪吒探针面板站点的nginx配置文件中
ROOT目录下一行

    location /ws {
    proxy_pass http://127.0.0.1:8008;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $host;
    }


完整的宝塔面板反代配置文件如下:

#PROXY-START/
location ^~ / {
    proxy_pass http://127.0.0.1:8008;
    proxy_set_header Host $http_host;
    proxy_set_header      Upgrade $http_upgrade;
}
location ~ ^/(ws|terminal/.+)${
    proxy_pass http://127.0.0.1:8008;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $http_host;
}
#PROXY-END/
location /ws {
    proxy_pass http://127.0.0.1:8008;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $host;
    }

页: [1]
查看完整版本: 哪吒探针出现 实时通道断开 问题的解决