From fcb072930834fe1a388743df0bb7ef18e97a8d0d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 28 Dec 2022 16:17:19 +0100 Subject: [PATCH] Update 99-run.sh --- webtrees/rootfs/etc/cont-init.d/99-run.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/webtrees/rootfs/etc/cont-init.d/99-run.sh b/webtrees/rootfs/etc/cont-init.d/99-run.sh index 13fdbb8c0..f3727fdc6 100755 --- a/webtrees/rootfs/etc/cont-init.d/99-run.sh +++ b/webtrees/rootfs/etc/cont-init.d/99-run.sh @@ -2,14 +2,6 @@ # shellcheck shell=bash # shellcheck disable=SC2155 -#################### -# GLOBAL VARIABLES # -#################### - -BASE_URL=$(bashio::config 'BASE_URL'):$(bashio::addon.port 80) -export BASE_URL="${BASE_URL/https:/http:}" -#export LANG=$(bashio::config 'LANG') - ############## # CLOUDFLARE # ############## @@ -87,7 +79,11 @@ if bashio::config.true 'ssl'; then else -export HTTPS=false + export HTTPS=false + export SSL=false + export HTTPS_REDIRECT=false + BASE_URL=$(bashio::config 'BASE_URL'):$(bashio::addon.port 80) + export BASE_URL="${BASE_URL/https:/http:}" fi