diff --git a/apps/api/src/services/host_aggregator.py b/apps/api/src/services/host_aggregator.py index f5301841..a41ce475 100644 --- a/apps/api/src/services/host_aggregator.py +++ b/apps/api/src/services/host_aggregator.py @@ -276,14 +276,18 @@ async def _http_probe( # Service definitions: (name, port, probe_type, path_or_none) # probe_type: "tcp" | "http" | "https" +# 2026-04-09 Claude Sonnet 4.6: 修正 HOST_CONFIGS probe 端點 +# - 110: Harbor→tcp(5000), Docker 2375→Gitea tcp(3001) +# - 120: K3s 6443 https→tcp(401 被誤判 down), Traefik 80 closed→刪除 +# - 188: OpenClaw 8089→8088 (實際端口) HOST_CONFIGS = { "192.168.0.110": { "name": "DevOps 金庫", "role": HostRole.DEVOPS, "services": [ - ("Harbor", 5000, "http", "/api/v2/"), + ("Harbor", 5000, "tcp", None), # http /api/v2/ 回 HTML,改 tcp + ("Gitea", 3001, "tcp", None), # CI/CD 主倉,取代 Docker 2375 ("GH Runner", 3000, "tcp", None), - ("Docker", 2375, "tcp", None), ], }, "192.168.0.112": { @@ -298,8 +302,7 @@ HOST_CONFIGS = { "name": "K3s Master", "role": HostRole.K3S, "services": [ - ("K3s API", 6443, "https", "/healthz"), - ("Traefik", 80, "http", "/"), + ("K3s API", 6443, "tcp", None), # https /healthz 回 401 被誤判,改 tcp ("awoooi-prod", 32335, "tcp", None), ], }, @@ -311,7 +314,7 @@ HOST_CONFIGS = { ("PostgreSQL", 5432, "tcp", None), ("Redis", 6380, "tcp", None), ("Ollama", 11434, "http", "/api/tags"), - ("OpenClaw", 8089, "http", "/health"), + ("OpenClaw", 8088, "http", "/health"), # 修正: 8089→8088 ("SigNoz", 3301, "http", "/api/v1/health"), ], },