init
This commit is contained in:
16
transport/backend/app/config.py
Normal file
16
transport/backend/app/config.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user