temporary
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
DOMAIN=$HOMEASSISTANT_DOMAIN
|
HOMEASSISTANT_DOMAIN="https://$DOMAIN";
|
||||||
SELECTOR=$HOMEASSISTANT
|
SELECTOR=$HOMEASSISTANT
|
||||||
HOMEASSISTANT_IP=$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d '/' -f1)
|
HOMEASSISTANT_IP=$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d '/' -f1)
|
||||||
HOST_FILE=/etc/system/data/dns/hosts.local;
|
HOST_FILE=/etc/system/data/dns/hosts.local;
|
||||||
@@ -22,20 +22,13 @@ if [ ! -f /etc/user/data/homeassistant/config/configuration.yaml ]; then
|
|||||||
echo '# Loads default set of integrations. Do not remove.
|
echo '# Loads default set of integrations. Do not remove.
|
||||||
default_config:
|
default_config:
|
||||||
homeassistant:
|
homeassistant:
|
||||||
external_url: "DOMAIN"
|
external_url: "http://localhost"
|
||||||
http:
|
http:
|
||||||
use_x_forwarded_for: true
|
use_x_forwarded_for: true
|
||||||
trusted_proxies:
|
trusted_proxies:
|
||||||
- 172.18.104.2
|
- 172.18.104.2
|
||||||
- 172.18.105.2
|
- 172.18.105.2' >/etc/user/data/homeassistant/config/configuration.yaml
|
||||||
# Load frontend themes from the themes folder
|
|
||||||
frontend:
|
|
||||||
themes: !include_dir_merge_named themes
|
|
||||||
|
|
||||||
automation: !include automations.yaml
|
|
||||||
script: !include scripts.yaml
|
|
||||||
scene: !include scenes.yaml
|
|
||||||
' >/etc/user/data/homeassistant/config/configuration.yaml
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
yq eval .'.homeassistant.external_url = "'$DOMAIN'"' -i /etc/user/data/homeassistant/config/configuration.yaml
|
yq eval '.homeassistant.external_url = "'$HOMEASSISTANT_DOMAIN'"' -i /etc/user/data/homeassistant/config/configuration.yaml
|
||||||
|
Reference in New Issue
Block a user