feat(daemon): add configuration via config crate with TOML + env vars

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-19 22:51:52 +01:00
co-authored by Claude Sonnet 4.6
parent 48d93321a3
commit 6d7409b156
3 changed files with 118 additions and 3 deletions
+18
View File
@@ -0,0 +1,18 @@
# deploy/daemon-config.toml
[http]
bind = "0.0.0.0"
port = 8080
[influx]
url = "http://localhost:8086"
token = ""
org = "loraweb"
bucket = "sensors"
[database]
path = "loraweb.db"
[alarm]
warning_threshold_hours = 2.0
alarm_threshold_hours = 6.0
check_interval_secs = 60