Browse Source

handle new installs

merge-requests/90/head
Steven Foerster 5 years ago
parent
commit
c3b761a6bf
  1. 25
      scripts/services/homeassistant/init.sh

25
scripts/services/homeassistant/init.sh

@ -10,6 +10,19 @@ if [[ -f "$HASS_CONFIG" ]]; then
exit 0; exit 0;
fi fi
# add the proxy config
# write the trusted proxies config
cat >> ${HASS_CONFIG}<< EOF
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.16.0.0/12
EOF
exit 0;
fi fi
# create parent directory if needed # create parent directory if needed
@ -21,6 +34,18 @@ fi
# write the trusted proxies config # write the trusted proxies config
cat >> ${HASS_CONFIG}<< EOF cat >> ${HASS_CONFIG}<< EOF
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
http: http:
use_x_forwarded_for: true use_x_forwarded_for: true
trusted_proxies: trusted_proxies:

Loading…
Cancel
Save