"""Application configuration via pydantic-settings.""" from pydantic_settings import BaseSettings, SettingsConfigDict class Settings(BaseSettings): """Application settings loaded from environment variables.""" model_config = SettingsConfigDict( env_file=".env", env_file_encoding="utf-8", case_sensitive=False, ) # Database database_url: str # Redis redis_url: str = "redis://localhost:6379/0" # JWT jwt_secret_key: str jwt_algorithm: str = "HS256" jwt_issuer: str = "incidentops" jwt_audience: str = "incidentops-api" access_token_expire_minutes: int = 15 refresh_token_expire_days: int = 30 # Application debug: bool = False api_v1_prefix: str = "/v1" settings = Settings()