Files
sibuti/transport/backend/app/config.py
2025-12-18 21:13:49 +03:00

17 lines
368 B
Python

from pydantic_settings import BaseSettings
class Settings(BaseSettings):
database_url: str = "postgresql://postgres:postgres@localhost:5432/transport"
# Event detection settings
long_stop_minutes: int = 5
overspeed_limit: float = 60.0 # km/h
connection_lost_minutes: int = 5
class Config:
env_file = ".env"
settings = Settings()