58 lines
1.5 KiB
Bash
58 lines
1.5 KiB
Bash
# --- Database ---
|
|
POSTGRES_USER=ingester
|
|
POSTGRES_PASSWORD=changeme
|
|
POSTGRES_DB=telemetry
|
|
POSTGRES_PORT=5432
|
|
|
|
# --- MQTT Broker (MQTTS) ---
|
|
MQTT_BROKER_HOST=broker.example.com
|
|
MQTT_BROKER_PORT=8883
|
|
MQTT_TOPIC=sensors/#
|
|
MQTT_CLIENT_ID=mqtt-ingester
|
|
|
|
# --- Broker authentication (all optional; combinable) ---
|
|
# MQTT username/password (CONNECT-packet auth, Mosquitto password_file etc.).
|
|
MQTT_USERNAME=
|
|
MQTT_PASSWORD=
|
|
# TLS-PSK: takes precedence over certificates when both are set.
|
|
# MQTT_PSK_HEX is a hex string, e.g. "0123456789abcdef" (no 0x prefix).
|
|
MQTT_PSK_IDENTITY=
|
|
MQTT_PSK_HEX=
|
|
|
|
# --- Batched DB writes (mqtt-client) ---
|
|
DB_BATCH_SIZE=500
|
|
DB_FLUSH_SECONDS=1.0
|
|
|
|
# --- Logging ---
|
|
LOG_LEVEL=INFO
|
|
LOG_TO_FILE=true
|
|
|
|
# --- Loki (optional, leave LOKI_URL empty to disable) ---
|
|
LOKI_URL=
|
|
LOKI_USER=
|
|
LOKI_PASSWORD=
|
|
LOKI_FLUSH_SECONDS=5
|
|
LOKI_TIMEOUT_SECONDS=5
|
|
|
|
# --- API ---
|
|
API_PORT=8443
|
|
DB_POOL_MIN_SIZE=2
|
|
DB_POOL_MAX_SIZE=10
|
|
|
|
# --- Web UI ---
|
|
WEBUI_PORT=8080
|
|
# Initial admin, created only when the users table is empty on first
|
|
# start. Leave ADMIN_PASSWORD empty to get the default admin/admin (the
|
|
# UI then forces a password change on first login).
|
|
ADMIN_USERNAME=admin
|
|
ADMIN_PASSWORD=
|
|
|
|
# --- Web UI (access control) ---
|
|
# Port for the web UI (bound to 127.0.0.1).
|
|
WEBUI_PORT=8080
|
|
# Initial admin, created only when the users table is empty.
|
|
# Leave ADMIN_PASSWORD empty to use the default admin/admin (the UI then
|
|
# forces a password change on first login).
|
|
ADMIN_USERNAME=admin
|
|
ADMIN_PASSWORD=
|