Prepare hosting deployment and Drone image builds
Some checks failed
continuous-integration/drone/push Build was killed
continuous-integration/drone/pr Build was killed

This commit is contained in:
2026-03-18 15:26:18 +06:00
parent de8ad67038
commit 05b8efd0f2
13 changed files with 195 additions and 206 deletions

View File

@@ -172,6 +172,11 @@ def check_server_access(user: dict, server_name: str):
return False
return server_name in user.get("servers", [])
# Healthcheck endpoint for Docker/hosting probes
@app.get("/health")
async def health():
return {"status": "ok"}
# API для аутентификации
# OpenID Connect endpoints
@@ -1936,4 +1941,4 @@ app.include_router(daemons_router)
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000)
uvicorn.run(app, host="0.0.0.0", port=4546)