workbuddy.xpcool.com/.workbuddy/tmp/status.xpcool.com.conf

25 lines
976 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# status.xpcool.com 服务监控面板Uptime Kuma 2.5.3
# 反代后端容器 uptime-kuma127.0.0.1:3001
# 2026-09-13 首次部署:先以 HTTP 提供(便于完成初始化与验证)
# 待腾讯云免费证书到位后改为「80 -> 301 -> 443」标准形态
server {
listen 80;
server_name status.xpcool.com;
# 面板依赖 WebSocket 实时推送状态,必须透传 Upgrade 头,否则页面无限重连
location / {
proxy_pass http://127.0.0.1:3001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
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 X-Forwarded-Proto $scheme;
# 心跳/长轮询连接保持时间,避免面板偶发掉线
proxy_read_timeout 300s;
proxy_send_timeout 300s;
}
}