from pydantic_settings import BaseSettings from pathlib import Path class Settings(BaseSettings): app_name: str = "Veeam Dashboard" db_url: str = "sqlite+aiosqlite:///./veeam_dashboard.db" cache_ttl: int = 60 request_timeout: int = 30 host: str = "0.0.0.0" port: int = 8080 secret_key: str = "change-me-in-production" class Config: env_file = ".env" env_file_encoding = "utf-8" settings = Settings() BASE_DIR = Path(__file__).parent