14 lines
421 B
Python
14 lines
421 B
Python
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()
|