From 392cbb790fc7663384fffc32fbbe9af1b0982031 Mon Sep 17 00:00:00 2001 From: Gyurix Date: Tue, 3 Dec 2024 17:43:06 +0100 Subject: [PATCH] temporary --- entrypoint.sh | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 6ae5c37..ae228ec 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,6 @@ #!/bin/sh -DOMAIN=$HOMEASSISTANT_DOMAIN +HOMEASSISTANT_DOMAIN="https://$DOMAIN"; SELECTOR=$HOMEASSISTANT HOMEASSISTANT_IP=$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d '/' -f1) 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. default_config: homeassistant: - external_url: "DOMAIN" + external_url: "http://localhost" http: use_x_forwarded_for: true trusted_proxies: - 172.18.104.2 - - 172.18.105.2 -# Load frontend themes from the themes folder -frontend: - themes: !include_dir_merge_named themes + - 172.18.105.2' >/etc/user/data/homeassistant/config/configuration.yaml -automation: !include automations.yaml -script: !include scripts.yaml -scene: !include scenes.yaml - ' >/etc/user/data/homeassistant/config/configuration.yaml 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