feat: apply configuration on start

This commit is contained in:
2025-05-17 22:28:56 +02:00
parent d8e047d58b
commit 9e6fcbdd74
11 changed files with 156 additions and 19 deletions

38
config/rcond-rpi-sta.yaml Normal file
View File

@@ -0,0 +1,38 @@
hostname: rpi-test
rcond:
addr: 0.0.0.0:8081
api_token: 1234567890
network:
connections:
# connect to MyHomeWifi on wlan0
- name: MyHomeWiFi
type: 802-11-wireless
interface: wlan0
ssid: MyHomeWiFi
mode: infrastructure
keymgmt: wpa-psk
psk: SuperSecure
ipv4method: auto
ipv6method: ignore
autoconnect: true
# TODO
# provide DHCP on eth0
#- name: MyThingsNetwork
# type: 802-3-ethernet
# interface: eth0
# method: shared
# autoconnect: true
cluster:
enabled: true
log_level: INFO
node_name: rcond-agent
secret_key: DMXnaJUUbIBMj1Df0dPsQY+Sks1VxWTa
advertise_addr: 0.0.0.0
advertise_port: 7946
bind_addr: 0.0.0.0
bind_port: 7946
#join:
# - 127.0.0.1:7946