From b4573d6ba0252042947260d01cd3f95737e943f0 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 9 Sep 2021 21:51:04 +0200 Subject: [PATCH] Update run.sh --- joal/rootfs/run.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/joal/rootfs/run.sh b/joal/rootfs/run.sh index 535a45cc0..683f78a4a 100644 --- a/joal/rootfs/run.sh +++ b/joal/rootfs/run.sh @@ -106,8 +106,9 @@ ln -sf /config/joal/config.json /data/joal/config.json # AUTOMATIC INGRESS # ##################### -if bashio::config.has_value 'ingress_url'; then - INGRESSURL=$(bashio::config 'ingress_url') +if bashio::config.has_value 'local_ip_port'; then + INGRESSURL=$(bashio::config 'local_ip_port')$(bashio::addon.ingress_url) + bashio::log.info $INGRESSURL sed -i "s|/ui/|/ui?ui_credentials=%7B%22host%22%3A%22${INGRESSURL}%22%2C%22port%22%3A%228123%22%2C%22pathPrefix%22%3A%22${UIPATH}%22%2C%22secretToken%22%3A%22${TOKEN}%22%7D|g" /etc/nginx/servers/ingress.conf bashio::log.info "Ingress url set. Auto connection activated." else