fix: WordPress Health-Check prüft wp-cron.php direkt statt Redirect über Cloudflare
This commit is contained in:
parent
f4b48aae69
commit
ec5ea0b266
2 changed files with 4 additions and 4 deletions
|
|
@ -63,9 +63,9 @@ def check_connectivity() -> bool:
|
|||
try:
|
||||
if not WP_URL or not WP_PASSWORD:
|
||||
return False
|
||||
result = _request("/posts?per_page=1")
|
||||
return result is not None
|
||||
except:
|
||||
resp = requests.get(f"{WP_URL}/wp-cron.php", timeout=8, allow_redirects=False)
|
||||
return resp.status_code < 400
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ CRITICAL_CONTAINERS = [101, 109, 111, 112, 113, 115]
|
|||
|
||||
HTTP_HEALTH_CHECKS = [
|
||||
# LAN-IPs direkt prüfen — kein Cloudflare-Umweg, keine Tailscale-Routing-Probleme
|
||||
{"name": "WordPress (CT 101)", "url": "http://10.10.10.101"},
|
||||
{"name": "WordPress (CT 101)", "url": "http://10.10.10.101/wp-cron.php"},
|
||||
{"name": "Matomo (CT 113)", "url": "http://10.10.10.113"},
|
||||
{"name": "Grafana (CT 110)", "url": "http://10.10.10.110:3000"},
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue