Use authenticated Gitea integration health check
All checks were successful
Container Image / build-and-push (push) Successful in 19s
All checks were successful
Container Image / build-and-push (push) Successful in 19s
This commit is contained in:
@@ -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/",
|
||||
|
||||
Reference in New Issue
Block a user