找回密码
 注册
【阿里云】2核2G云新老同享 99元/年,续费同价华为云精选云产品特惠做网站就用糖果主机Jtti,新加坡服务器,美国服务器,香港服务器
查看: 5|回复: 0

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

[复制链接]
发表于 前天 15:02 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

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

  1.     location /ws {
  2.     proxy_pass http://127.0.0.1:8008;
  3.     proxy_http_version 1.1;
  4.     proxy_set_header Upgrade $http_upgrade;
  5.     proxy_set_header Connection "Upgrade";
  6.     proxy_set_header Host $host;
  7.     }
复制代码


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

  1. #PROXY-START/
  2. location ^~ / {
  3.     proxy_pass http://127.0.0.1:8008;
  4.     proxy_set_header Host $http_host;
  5.     proxy_set_header      Upgrade $http_upgrade;
  6. }
  7. location ~ ^/(ws|terminal/.+)$  {
  8.     proxy_pass http://127.0.0.1:8008;
  9.     proxy_http_version 1.1;
  10.     proxy_set_header Upgrade $http_upgrade;
  11.     proxy_set_header Connection "Upgrade";
  12.     proxy_set_header Host $http_host;
  13. }
  14. #PROXY-END/
  15.   location /ws {
  16.     proxy_pass http://127.0.0.1:8008;
  17.     proxy_http_version 1.1;
  18.     proxy_set_header Upgrade $http_upgrade;
  19.     proxy_set_header Connection "Upgrade";
  20.     proxy_set_header Host $host;
  21.     }
复制代码


Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|金光论坛

GMT+8, 2024 年 10 月 23 日 23:26 , Processed in 0.073974 second(s), 26 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表