Files
sport-platform/backend/app/core/config.py
2026-03-16 12:12:56 +03:00

35 lines
789 B
Python

from pydantic_settings import BaseSettings
class Settings(BaseSettings):
model_config = {"env_file": ".env", "env_file_encoding": "utf-8"}
# Database
DATABASE_URL: str = "postgresql+asyncpg://velobrain:velobrain@localhost:5432/velobrain"
# Anthropic
ANTHROPIC_API_KEY: str = ""
# Gemini
GEMINI_API_KEY: str = ""
GEMINI_MODEL: str = "gemini-2.5-pro"
# App
APP_SECRET_KEY: str = "change-me-in-production"
DEBUG: bool = True
# Auth / JWT
JWT_SECRET_KEY: str = "change-me-jwt-secret"
JWT_ALGORITHM: str = "HS256"
JWT_ACCESS_TOKEN_EXPIRE_MINUTES: int = 1440 # 24 hours
# Telegram
TELEGRAM_BOT_TOKEN: str = ""
TELEGRAM_BOT_USERNAME: str = ""
# Upload
UPLOAD_DIR: str = "./uploads"
settings = Settings()