Enabled Caddy logging and added unbuffered health check

This commit is contained in:
2026-02-10 22:20:19 +08:00
parent 29c9f0139e
commit a05c88f6d5
3 changed files with 15 additions and 0 deletions

View File

@@ -1,4 +1,13 @@
{
debug
}
ai-gateway.ldex.dev {
# Log all requests to stdout
log {
output stdout
}
# 1. Force CORS headers and DELETE duplicates from backend
header {
-Access-Control-Allow-Origin

View File

@@ -70,6 +70,10 @@ import os
async def admin_panel():
return FileResponse("app/static/admin.html")
@app.get("/api/v1/health")
async def health_check():
return {"status": "ok", "message": "Global AI Gateway is reachable"}
@app.get("/")
async def root():
return FileResponse("app/static/index.html")

View File

@@ -4,6 +4,8 @@ services:
container_name: ai-gateway
networks:
- ai_network
environment:
- PYTHONUNBUFFERED=1
env_file:
- .env
restart: always