from pydantic_settings import BaseSettings from functools import lru_cache class Settings(BaseSettings): # Database database_url: str = "postgresql://user:password@localhost:5432/findadispo" # JWT Settings secret_key: str = "your-super-secret-key-change-in-production" algorithm: str = "HS256" access_token_expire_minutes: int = 30 # External API dispensary_api_url: str = "http://localhost:3010" dispensary_api_key: str = "" # CORS frontend_url: str = "http://localhost:3000" # Server host: str = "0.0.0.0" port: int = 8000 class Config: env_file = ".env" @lru_cache() def get_settings(): return Settings()