958f6ac0b0
Reads STATION_CODE from the environment and exposes it as Config.STATION_CODE (None when unset or empty). Adds the variable to .env.example with a per-station deployment note, and covers both read and missing-key paths with new pytest tests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# ===========================
|
|
# TieMeasureFlow Configuration
|
|
# ===========================
|
|
|
|
# --- Database ---
|
|
DB_HOST=localhost
|
|
DB_PORT=3306
|
|
DB_NAME=tiemeasureflow
|
|
DB_USER=tmflow
|
|
DB_PASSWORD=change_me_in_production
|
|
|
|
# --- Server ---
|
|
SERVER_HOST=0.0.0.0
|
|
SERVER_PORT=8000
|
|
SERVER_SECRET_KEY=change-this-to-a-random-secret-key
|
|
SERVER_CORS_ORIGINS=http://localhost:5000
|
|
|
|
# --- Client ---
|
|
CLIENT_HOST=0.0.0.0
|
|
CLIENT_PORT=5000
|
|
CLIENT_SECRET_KEY=change-this-to-another-random-secret-key
|
|
API_SERVER_URL=http://localhost:8000
|
|
# Station code this client container belongs to (e.g. ST-001).
|
|
# Each physical tablet/PC deployment must set this unique per-station value.
|
|
# Leave empty only for a single-station all-in-one demo using ST-DEFAULT.
|
|
STATION_CODE=ST-DEFAULT
|
|
|
|
# --- File Storage ---
|
|
UPLOAD_DIR=server/uploads
|
|
MAX_UPLOAD_SIZE_MB=50
|
|
|
|
# --- Setup Page ---
|
|
SETUP_PASSWORD= # Password per /api/setup, vuoto = disabilitato
|
|
|
|
# --- Docker ---
|
|
DB_ROOT_PASSWORD=root_password_change_me
|
|
NGINX_PORT=80
|
|
NGINX_SSL_PORT=443
|
|
|
|
# --- HTTPS (Production) ---
|
|
# SSL_CERTFILE=/path/to/cert.pem
|
|
# SSL_KEYFILE=/path/to/key.pem
|