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:
@@ -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
|
||||
Reference in New Issue
Block a user