- healthz improvements

This commit is contained in:
Josako
2025-09-07 08:28:02 +02:00
parent 5c20e6c1f9
commit 362b2fe753
3 changed files with 16 additions and 2 deletions

View File

@@ -86,6 +86,14 @@ def create_app(config_file=None):
# Register Cache Handlers
register_cache_handlers(app)
# Register standard health endpoints at /healthz (liveness/readiness)
# These must be public and not require authentication.
try:
from flask_healthz import healthz as healthz_blueprint
app.register_blueprint(healthz_blueprint, url_prefix="/healthz")
except Exception as e:
app.logger.warning(f"Failed to register /healthz blueprint: {e}")
# Custom url_for function for templates
@app.context_processor
def override_url_for():