2026-02-04 17:13:58 +01:00
|
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
|
|
|
model_config = SettingsConfigDict(
|
|
|
|
|
env_file=".env",
|
|
|
|
|
env_file_encoding="utf-8",
|
|
|
|
|
extra="ignore",
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
app_name: str = "Nuzlocke Tracker API"
|
|
|
|
|
debug: bool = False
|
|
|
|
|
|
|
|
|
|
# API settings
|
|
|
|
|
api_v1_prefix: str = "/api/v1"
|
|
|
|
|
|
2026-02-05 13:29:34 +01:00
|
|
|
# Database settings
|
|
|
|
|
database_url: str = "postgresql+asyncpg://postgres:postgres@localhost:5432/nuzlocke"
|
2026-02-04 17:13:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
settings = Settings()
|