11 lines
296 B
Python
11 lines
296 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
class Settings(BaseSettings):
|
|
database_url: str = "postgresql+asyncpg://postgres:postgres@db:5432/messenger"
|
|
session_ttl_seconds: int = 3600
|
|
instance_id: str = "api-node-1"
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
|
|
settings = Settings() |