哪吒探针“实时通道断开”问题

2024-01-27T22:24:24

一般是反代后添加HTTPS后产生的本问题。

宝塔环境下直接在网站配置文件添加下列代码即可。

其他环境自行添加至nginx配置文件中

location /
{
    proxy_pass http://127.0.0.1:8008;
    proxy_set_header Host $host;
}
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;
}
当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »