Add SSE second-level status push for control monitor.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-30 13:32:28 +08:00
parent 7136adcaa9
commit b3ba0fd431
10 changed files with 273 additions and 41 deletions
+3
View File
@@ -6,6 +6,9 @@ CONTROL_AUTH_SECRET=change-me-control-secret-please
CONTROL_AUTH_TOKEN_VERSION=1
CONTROL_TOKEN_TTL_SEC=604800
CONTROL_POLL_INTERVAL_SEC=8
# 监控区 SSE 推送间隔(秒)与单机探测超时
CONTROL_SSE_INTERVAL_SEC=1
CONTROL_SSE_PROBE_TIMEOUT_SEC=2.5
CONTROL_HTTP_TIMEOUT_SEC=12
# 局域网免登录:1=开启(仅私网 IP),0=关闭
CONTROL_LAN_AUTH_BYPASS=0