feat(setup): auto-detect host server IP in setup banner, support HEAD in /health, clean compose warning

This commit is contained in:
2026-10-21 18:03:41 +07:00
parent 870c533b5a
commit d28395a1d9
3 changed files with 16 additions and 8 deletions
+3 -3
View File
@@ -48,7 +48,7 @@ app.include_router(api_v1_router)
app.include_router(legacy_router)
@app.get("/api/v1/health", tags=["System"], summary="System health check probe")
@app.api_route("/api/v1/health", methods=["GET", "HEAD"], tags=["System"], summary="System health check probe")
def health_check():
"""Health check probe endpoint."""
return {
@@ -58,8 +58,8 @@ def health_check():
}
# Backward compatibility health check probes (hidden from OpenAPI schema)
@app.get("/health", include_in_schema=False)
@app.get("/api/health", include_in_schema=False)
@app.api_route("/health", methods=["GET", "HEAD"], include_in_schema=False)
@app.api_route("/api/health", methods=["GET", "HEAD"], include_in_schema=False)
def legacy_health_check():
return health_check()