from pydantic_settings import BaseSettings from functools import lru_cache class Settings(BaseSettings): # Application app_name: str = "AuditShield" debug: bool = False secret_key: str algorithm: str = "HS256" access_token_expire_minutes: int = 60 * 24 # 24h # Database database_url: str # Redis / Celery redis_url: str = "redis://redis:6379/0" class Config: env_file = ".env" @lru_cache def get_settings() -> Settings: return Settings() settings = get_settings()