switch to configfile instead of env

This commit is contained in:
Robin Appelman 2024-02-29 23:39:46 +01:00
commit c4d579b033
9 changed files with 629 additions and 274 deletions

13
config.sample.toml Normal file
View file

@ -0,0 +1,13 @@
[mqtt]
hostname = "mqtt.example.com"
username = "wifi-exporter"
password_file = "/path/to/password"
[exporter]
port = 1234
interfaces = ["eth1", "eth2"]
[ssh]
host = "accesspoint.example.com:22"
key_file = "/path/to/ssh/key"
pubkey_file = "/path/to/ssh/key.pub"