app.config

Runtime settings, read from environment variables (and .env in the working directory, if present).

Every field maps to the upper-case env var of the same name, e.g. NDTP_PORT=9201. Lists are JSON: CORS_ORIGINS='["https://app.mowtransit.ru"]'.

Classes

Settings(*args, **kwargs)

class app.config.Settings(*args: Any, **kwargs: Any)[исходный код]

Базовые классы: BaseSettings

clock_day: date = datetime.date(2026, 1, 6)
dataset_split: str = 'validate'
history_flush_s: float = 1.0
log_level: str = 'INFO'
ml_timeout_s: float = 10.0
ml_url: str = 'http://ml:8001'
ndtp_backlog: int = 4096
ndtp_enabled: bool = True
ndtp_host: str = '0.0.0.0'
ndtp_idle_timeout_s: float = 300.0
ndtp_max_connections: int = 20000
ndtp_port: int = 9201
replay_enabled: bool = True