"""Конфигурация приложения (переменные окружения).""" from pydantic_settings import BaseSettings, SettingsConfigDict class Settings(BaseSettings): model_config = SettingsConfigDict(env_file=".env", extra="ignore") # Общие app_name: str = "opora" environment: str = "dev" debug: bool = False # База данных database_url: str = "postgresql+psycopg://opora:opora@postgres:5432/opora" # Redis / Celery redis_url: str = "redis://redis:6379/0" celery_broker_url: str = "redis://redis:6379/1" celery_result_backend: str = "redis://redis:6379/2" # JWT jwt_secret: str = "change-me" jwt_algorithm: str = "HS256" access_token_ttl_days: int = 30 refresh_token_ttl_days: int = 30 # CORS cors_origins: list[str] = ["https://opora.my-dpr.ru"] # MinIO / S3 s3_endpoint: str = "http://minio:9000" s3_access_key: str = "minio" s3_secret_key: str = "minio123" s3_bucket: str = "artifacts" # Мессенджеры telegram_bot_token: str = "" max_bot_token: str = "" # LLM openrouter_api_key: str = "" llm_model: str = "deepseek/deepseek-chat" settings = Settings()