]> git.giorgioravera.it Git - zigbee2mqtt.git/commitdiff
Enabled frontend auth, moved from local to remote adapter (ser2net)
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Wed, 18 Jan 2023 23:26:49 +0000 (00:26 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Wed, 18 Jan 2023 23:26:49 +0000 (00:26 +0100)
configuration.yaml

index 3defb904e1d1e45211d782953f051638f1455c34..669aa3bf6b7ed26846312079a57d002e6f0b5c49 100644 (file)
@@ -8,7 +8,8 @@ permit_join: false
 serial:
   # Required: location of the adapter (e.g. CC2531).
   # To autodetect the port, set 'port: null'.
-  port: /dev/ttyACM0
+  #port: /dev/ttyACM0
+  port: 'tcp://pve.giorgioravera.it:20108'
   # Optional: disable LED of the adapter if supported (default: false)
   disable_led: true
   # Optional: adapter type, not needed unless you are experiencing problems (default: shown below, options: zstack, deconz)
@@ -20,6 +21,7 @@ mqtt:
   base_topic: zigbee2mqtt
   # Required: MQTT server URL (use mqtts:// for SSL/TLS connection)
   server: 'mqtt://mqtt.giorgioravera.it'
+  #server: 'mqtts://mqtt.giorgioravera.it:8883'
   # Optional: absolute path to SSL/TLS certificate of CA used to sign server and client certificates (default: nothing)
   #ca: '/etc/ssl/mqtt-ca.crt'
   # Optional: absolute paths to SSL/TLS key and certificate for client-authentication (default: nothing)
@@ -51,7 +53,7 @@ frontend:
   # Optional, default 0.0.0.0
   #host: 0.0.0.0
   # Optional, enables authentication, disabled by default
-  #auth_token: your-secret-token
+  auth_token: '!secret auth_token'
   # Optional, url on which the frontend can be reached, currently only used for the Home Assistant device configuration page
   #url: 'https://zigbee2mqtt.myhouse.org'
 
@@ -98,7 +100,7 @@ advanced:
   # Optional: ZigBee channel, changing requires re-pairing of all devices. (Note: use a ZLL channel: 11, 15, 20, or 25 to avoid Problems)
   # (default: 11)
   channel: 15
-  # Optional: network encryption key, will improve security 
+  # Optional: network encryption key, will improve security
   # Note: changing requires repairing of all devices (default: shown below)
   network_key: '!secret network_key'
   # Optional: Logging level, options: debug, info, warn, error (default: info)
@@ -165,10 +167,11 @@ advanced:
 
 # Optional: Define default values which are applied to all devices
 device_options:
+  retain: true
   temperature_precision: 0
   humidity_precision: 0
 
-# Optional: Define the files which contains the configs 
+# Optional: Define the files which contains the configs
 devices: devices.yaml
 groups: groups.yaml