from pydantic_settings import BaseSettings class Settings(BaseSettings): database_url: str = "sqlite:///./data/leopost.db" secret_key: str = "leopost-secret-change-in-production-2026" admin_username: str = "admin" admin_password: str = "changeme" access_token_expire_minutes: int = 1440 # 24h # Google OAuth # Reads from env vars: GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET google_client_id: str = "" google_client_secret: str = "" # App base URL (used for OAuth redirects) # Reads from env var: APP_URL app_url: str = "https://leopost.it" class Config: env_file = ".env" extra = "ignore" settings = Settings()