forked from mtusi2026/mtusi2026lab2
10 lines
343 B
Python
10 lines
343 B
Python
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
class Settings(BaseSettings):
|
|
database_url: str = "postgresql+asyncpg://postgres:postgres@db:5432/messenger"
|
|
session_ttl_seconds: int = 3600
|
|
instance_id: str = "api-node-1"
|
|
|
|
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
|
|
|
settings = Settings() |