🎉 Initial commit

This commit is contained in:
Jonas Bengtsson
2026-08-30 09:56:33 +02:00
commit c2ae24818e
14 changed files with 1058 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
# --- 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