Skip to content

Commit

Permalink
fix: Add secure default config (#18357)
Browse files Browse the repository at this point in the history
* fix: Add secure default config. #16188

* Enable frontend by default
  • Loading branch information
Koenkk authored Aug 3, 2023
1 parent 0718ca1 commit 68ec507
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ data/extension

# Ignore config
data/*.yaml
!data/configuration.example.yaml

# commit-user-lookup.json
scripts/commit-user-lookup.json
25 changes: 25 additions & 0 deletions data/configuration.example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Home Assistant integration (MQTT discovery)
homeassistant: false

# Enable the frontend, runs on port 8080 by default
frontend: true

# MQTT settings
mqtt:
# MQTT base topic for zigbee2mqtt MQTT messages
base_topic: zigbee2mqtt
# MQTT server URL
server: 'mqtt://localhost'
# MQTT server authentication, uncomment if required:
# user: my_user
# password: my_password

# Serial settings
serial:
# Location of CC2531 USB sniffer
port: /dev/ttyACM0

# Advanced settings
advanced:
# Let Zigbee2MQTT generate a network key on first start
network_key: GENERATE
2 changes: 1 addition & 1 deletion docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ echo "Using '$DATA' as data directory"

if [ ! -f "$DATA/configuration.yaml" ]; then
echo "Creating configuration file..."
cp /app/configuration.yaml "$DATA/configuration.yaml"
cp /app/configuration.example.yaml "$DATA/configuration.yaml"
fi

exec "$@"

0 comments on commit 68ec507

Please sign in to comment.