v1.6.0: max_bot fixes — feature keys, flush→commit, test-run, categories, broadcast page, proxy error handling, deploy scripts

This commit is contained in:
2026-05-24 07:50:38 +03:00
parent bd048ea23d
commit 493e0b37a1
127 changed files with 6082 additions and 65 deletions
+24
View File
@@ -0,0 +1,24 @@
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()