Files
LedgerLine/common/settings.py
T

28 lines
815 B
Python
Raw Normal View History

from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
service_name: str = "unknown"
postgres_dsn: str = "postgresql+asyncpg://ledgerline:ledgerline@postgres:5432/ledgerline"
redis_url: str = "redis://redis:6379/0"
gateway_url: str = "http://gateway:8000"
ledger_url: str = "http://ledger:8001"
fraud_url: str = "http://fraud:8002"
sanctions_url: str = "http://sanctions:8003"
insights_url: str = "http://insights:8004"
notifier_url: str = "http://notifier:8005"
downstream_timeout_seconds: float = 3.0
stream_name: str = "stream:transactions"
summary_cache_ttl_seconds: int = 900
summary_cache_ttl_seconds_cold: int = 60
settings = Settings()