import os from pathlib import Path from pydantic_settings import BaseSettings from functools import lru_cache class Settings(BaseSettings): DATABASE_URL: str = "postgresql+asyncpg://aegisone:aegisone_pass@localhost:5432/aegisone" APP_ENV: str = "development" LOG_LEVEL: str = "debug" WEBHOOK_PATH: str = "/webhook" WEBHOOK_SECRET: str = "change-me-to-random-secret" UPLOADS_DIR: str = str(Path(__file__).parent.parent / "uploads" / "bot") YANDEX_DISK_TOKEN: str = "" YANDEX_DISK_ROOT: str = "/AegisOne_Service" class Config: env_file = ".env" env_file_encoding = "utf-8" @lru_cache() def get_settings() -> Settings: return Settings()