endpoints - add SQLAlchemy models for RSVPS and singleton invitation configuration - implement phone number normalization (10d Colombia standard) and duplicate detection - add Authelia Remote-User security guard on all admin endpoints - use typing.Annotated for FastAPI dependencies and date.fromisoformat - add CSV export for RSVP responses - add SPA catch-all mount under /birthday/ - add linting and static check configuration
15 lines
387 B
Python
15 lines
387 B
Python
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
SERVICE_NAME: str = "bdinvite"
|
|
SERVICE_DOMAIN: str = "demos.roadtotech.me"
|
|
BASE_PATH: str = "/birthday"
|
|
APP_PORT: int = 8000
|
|
DATABASE_URL: str = "sqlite:///./data/bdinvite.db"
|
|
|
|
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
|
|
|
|
|
settings = Settings()
|