Use authenticated Gitea integration health check
All checks were successful
Container Image / build-and-push (push) Successful in 19s

This commit is contained in:
2026-07-08 11:56:56 +02:00
parent 2e0e1804de
commit 1bacc889ad
2 changed files with 32 additions and 2 deletions

View File

@@ -818,11 +818,13 @@ def setup_auth_routes(auth_manager: AuthManager) -> APIRouter:
except Exception as e:
return {"ok": False, "message": f"Request failed: {e}"[:400]}
# All other presets: GET against a known health endpoint.
# All other presets: GET against a known health endpoint. Prefer
# authenticated endpoints where available; public version endpoints
# can make a broken token look healthy.
# Fall back to detecting from name if preset is missing.
health_paths = {
"miniflux": "/v1/me",
"gitea": "/api/v1/version",
"gitea": "/api/v1/user",
"linkding": "/api/tags/",
"homeassistant": "/api/",
"home assistant": "/api/",