Files

14 lines
421 B
Python
Raw Permalink Normal View History

2026-05-12 18:21:25 +02:00
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
redis_url: str = "redis://localhost:6379"
database_url: str = "postgresql+asyncpg://sighej:sighej@localhost/sighej"
session_ttl_seconds: int = 7200
allowed_origins: list[str] = ["http://localhost:3000"]
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8")
settings = Settings()