Initial scaffold: FastAPI micro-service with Docker, SQLite, tests
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
"""Application configuration — env-driven, zero secrets hardcoded."""
|
||||
|
||||
import os
|
||||
|
||||
|
||||
class Settings:
|
||||
APP_NAME: str = "micro-api"
|
||||
VERSION: str = "0.1.0"
|
||||
DEBUG: bool = os.getenv("DEBUG", "false").lower() == "true"
|
||||
DATABASE_URL: str = os.getenv("DATABASE_URL", "sqlite:///data/app.db")
|
||||
HOST: str = os.getenv("HOST", "0.0.0.0")
|
||||
PORT: int = int(os.getenv("PORT", "8000"))
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user