Boilerplate FastAPI & Dockerfile + NGINX

This commit is contained in:
2025-09-22 17:58:16 +01:00
parent f3fbed5298
commit bf600b8e42
35 changed files with 650 additions and 0 deletions

12
app/main.py Normal file
View File

@@ -0,0 +1,12 @@
from fastapi import FastAPI
from app.core.config import settings
from app.api.v1 import auth, keys
app = FastAPI(title=settings.PROJECT_NAME)
app.include_router(auth.router, prefix=f"{settings.API_V1_STR}/auth", tags=["auth"])
app.include_router(keys.router, prefix=f"{settings.API_V1_STR}/keys", tags=["keys"])
# Health endpoint (useful for docker, agent and uptime)
@app.get("/healthz")
def healthz():
return {"status": 'ok'}