""" Configuration settings for the Diagram PH API """ from pydantic_settings import BaseSettings from typing import List class Settings(BaseSettings): """Application settings""" # Application APP_NAME: str = "Diagram PH API" VERSION: str = "1.0.0" ENV: str = "development" LOG_LEVEL: str = "DEBUG" # Server HOST: str = "0.0.0.0" PORT: int = 8001 # CORS CORS_ORIGINS: List[str] = [ "http://localhost:3000", "http://localhost:3001", "http://localhost:8000", "http://localhost:5173", # Vite dev server ] # Cache CACHE_TTL_SECONDS: int = 3600 CACHE_MAX_SIZE: int = 10000 # Rate limiting RATE_LIMIT_PER_MINUTE: int = 100 class Config: env_file = ".env" case_sensitive = True # Create global settings instance settings = Settings()