cokemine / nodestatus

Yet another servers monitor written in TypeScript
https://nodestatus-production.up.railway.app
MIT License
346 stars 65 forks source link

几个问题 #64

Open AuroraFrowned opened 2 years ago

AuroraFrowned commented 2 years ago

NodeStatus 属于 docker 安装 网址 https://nodestatus.87s.eu 在配置中配置了 TGBOT_WEBHOOK: "https://nodestatus.87s.eu" 后,相关机器人无反应 TGBOT_WEBHOOK: "" 这个配置下机器人才可以反应

同时安装了 nodestatus-client-go /usr/local/NodeStatus/client/status-client --dsn wss://sDhhw2DA:sDhhw2DA@nodestatus.87s.eu 提示 status-client[1596]: 2021/12/10 02:13:26 Caught Exception: websocket: bad handshake 换用 /usr/local/NodeStatus/client/status-client --dsn ws://sDhhw2DA:sDhhw2DA@nodestatus.87s.eu 同样错误提示

使用了宝塔反代 配置了 ssl 网址可以正常访问

如下是反代配置

PROXY-START/

location ~* .(gif|png|jpg|css|js|woff|woff2)$ { proxy_pass http://127.0.0.1:35601; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr; expires 12h; } location / { proxy_pass http://127.0.0.1:35601; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header X-NginX-Proxy true; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_http_version 1.1;

add_header X-Cache $upstream_cache_status;

#Set Nginx Cache

    add_header Cache-Control no-cache;

}

cokemine commented 2 years ago

我这边打不开你所提供的地址 显示 Access denied 应该是你配置的一些 Cloudflare 规则拦截了 客户端到服务端及 Telegram 到 服务端的请求

AuroraFrowned commented 2 years ago

我这边打不开你所提供的地址 显示 Access denied 应该是你配置的一些 Cloudflare 规则拦截了 客户端到服务端及 Telegram 到 服务端的请求

防火墙规则被我关闭了刚刚

cokemine commented 2 years ago

关掉相关规则还是连不上吗?

AuroraFrowned commented 2 years ago

关掉相关规则还是连不上吗?

仍然无法连接,同样配置了 TGBOT_WEBHOOK 也无法启动 Bot

cokemine commented 2 years ago

@AuroraFrowned 我这里随便找了个机器试一下你提供的 DSN 信息(ps Issue 解决后请修改)应该是正常的

root@xxxxx:~# /usr/local/NodeStatus/client/status-client --dsn wss://sDhhw2DA:sDhhw2DA@nodestatus.87s.eu
2021/12/10 19:10:04 Authentication required
2021/12/10 19:10:04 Authentication successful. Access granted.
2021/12/10 19:10:04 You are connecting via: IPv6