mirror of
https://github.com/0x1d/rcond.git
synced 2025-12-15 02:32:21 +01:00
feat: apply configuration on start
This commit is contained in:
33
config/rcond-rpi-ap.yaml
Normal file
33
config/rcond-rpi-ap.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
hostname: rpi-test
|
||||
|
||||
rcond:
|
||||
addr: 0.0.0.0:8081
|
||||
api_token: 1234567890
|
||||
|
||||
network:
|
||||
connections:
|
||||
# create access point and share network connection on wlan0
|
||||
- name: MyHomeWiFi
|
||||
type: 802-11-wireless
|
||||
interface: wlan0
|
||||
ssid: MyHomeWiFi
|
||||
mode: ap
|
||||
band: bg
|
||||
channel: 1
|
||||
keymgmt: wpa-psk
|
||||
psk: SuperSecure
|
||||
ipv4method: shared
|
||||
ipv6method: ignore
|
||||
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
|
||||
38
config/rcond-rpi-sta.yaml
Normal file
38
config/rcond-rpi-sta.yaml
Normal 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
|
||||
@@ -8,7 +8,7 @@ cluster:
|
||||
# Enable the cluster agent
|
||||
enabled: true
|
||||
# Log level
|
||||
log_level: INFO
|
||||
log_level: DEBUG
|
||||
# Name of the node in the cluster
|
||||
node_name: rcond
|
||||
# Secret key for the cluster agent used for message encryption.
|
||||
|
||||
Reference in New Issue
Block a user