fix: health check route via /api/health to match Traefik PathPrefix rule
Some checks failed
CI/CD → Deploy via SSH / Build & Push Docker Images (push) Successful in 39s
CI/CD → Deploy via SSH / Deploy via SSH (push) Successful in 2m55s
CI/CD → Deploy via SSH / Validate HTTPS & Endpoints (push) Failing after 47s

/health is routed to frontend nginx by Traefik (no /api prefix).
Add /api/health alias so Traefik routes the check to the backend.
Update workflow healthcheck step to call /api/health.
This commit is contained in:
MatheusAlves96 2026-04-22 22:44:43 -03:00
parent cf5603243c
commit d3e4438a4f
2 changed files with 3 additions and 2 deletions

View file

@ -76,6 +76,7 @@ def create_app(config_name: str | None = None) -> Flask:
app.register_blueprint(jobs_admin_bp)
@app.route("/health")
@app.route("/api/health")
def health():
from flask import jsonify