Alpha stage commit

This commit is contained in:
2026-07-01 23:29:51 +02:00
parent b583bb1233
commit e23387738b
84 changed files with 40807 additions and 326 deletions

20
.env.example Normal file
View File

@@ -0,0 +1,20 @@
# SQLite is the default for the prototype. It keeps the project runnable without Docker.
DATABASE_URL=sqlite:///./data/workbench.sqlite
# For large imports, use PostgreSQL/PostGIS instead:
# DATABASE_URL=postgresql://USER:PASSWORD@localhost:5432/meubility
# POSTGRES_USE_SIDECARS=false
DATA_DIR=./data
GTFS_STOP_TIMES_IMPORT_LIMIT=250000
# Start separate queue worker processes from the API server lifespan.
# Workers survive normal server restarts by default; stale leases are recovered.
QUEUE_WORKER_AUTOSTART=true
QUEUE_WORKER_COUNT=1
QUEUE_WORKER_POLL_INTERVAL_SECONDS=2
QUEUE_JOB_LEASE_SECONDS=7200
QUEUE_WORKER_STOP_ON_SHUTDOWN=false
# Chunk sizes for queued data-preparation jobs.
ROUTE_MATCHING_BATCH_SIZE=100
ROUTE_LAYER_OSM_ROUTE_BATCH_SIZE=1000
ROUTE_LAYER_OSM_STOP_BATCH_SIZE=5000