16 lines
415 B
Python
16 lines
415 B
Python
"""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()
|