- server/sql/init.sql: devices/tracking_points/dashcam_files schema - server/modules/db.py: psycopg3 pool + query helpers - server/modules/auth.py: X-Device-Name/X-Api-Key header auth - server/app.py: /health, /api/v1/tracking/batch, /api/v1/dashcam/upload - server/Dockerfile + docker-compose.yml: api (gunicorn) + postgres services - server/scripts/create_device.py: one-time device/API-key registration - server/README.md: unraid deployment + Cloudflare Tunnel exposure docs - PLAN.md: Phase 9 marked in progress with full build notes Co-authored-by: Copilot <[email protected]>
22 lines
790 B
Bash
22 lines
790 B
Bash
# Copy this file to .env and fill in real values before running
|
|
# `docker compose up -d`. .env itself is gitignored - never commit real
|
|
# credentials.
|
|
|
|
# Postgres credentials (internal to the compose network only, never exposed
|
|
# to the LAN/internet - pick any strong password).
|
|
POSTGRES_DB=yarisobd
|
|
POSTGRES_USER=yarisobd
|
|
POSTGRES_PASSWORD=changeme
|
|
|
|
# Host port the Flask API is published on (this is what you point the
|
|
# Cloudflare Tunnel / router port-forward at).
|
|
API_PORT=8098
|
|
|
|
# Where Postgres data + uploaded dashcam files are stored on the unraid host.
|
|
# Recommended: a path on the array, e.g. /mnt/user/appdata/yaris-obd-server
|
|
DATA_DIR=./data
|
|
|
|
# Reject dashcam uploads larger than this (MB). Bump if your dashcam
|
|
# produces very large individual clips.
|
|
MAX_DASHCAM_UPLOAD_MB=2048
|