mirror of
https://gitverse.ru/kpa39l/telepost.git
synced 2026-09-29 18:05:08 +00:00
21 lines
540 B
Python
21 lines
540 B
Python
from pydantic_settings import BaseSettings
|
|
from typing import Optional
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
DATABASE_URL: str = "postgresql://user:password@localhost/telepost"
|
|
REDIS_URL: str = "redis://localhost:6379"
|
|
|
|
SECRET_KEY: str = "your-secret-key-here"
|
|
ALGORITHM: str = "HS256"
|
|
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
|
|
|
|
# Telegram Bot API settings
|
|
TELEGRAM_BOT_TOKEN: Optional[str] = None
|
|
TELEGRAM_BOT_NAME: Optional[str] = None
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
|
|
|
|
settings = Settings() |