first commit

This commit is contained in:
brusnitsyn
2026-03-29 23:24:15 +09:00
commit a88375f72e
19 changed files with 4262 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
from pydantic_settings import BaseSettings, SettingsConfigDict
from typing import Optional
class Settings(BaseSettings):
"""Конфигурация приложения"""
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8")
# PostgreSQL Target Connection (назначение для всех репликаций)
postgres_host: str
postgres_database: str
postgres_username: str
postgres_password: str
postgres_port: int = 5432
# Redis for Celery
redis_host: str = "localhost"
redis_port: int = 6379
# Other settings
api_key: Optional[str] = None
settings = Settings()