From 955a7990de37ee2b433dc6f4d741c300488f0dc9 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 22 Oct 2021 22:42:57 +0200 Subject: [PATCH] Update start.sh --- webtrees/rootfs/start.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/webtrees/rootfs/start.sh b/webtrees/rootfs/start.sh index abb6b2ae3..a04496224 100644 --- a/webtrees/rootfs/start.sh +++ b/webtrees/rootfs/start.sh @@ -57,8 +57,6 @@ export WT_EMAIL=$(bashio::config 'WT_EMAIL') bashio::config.require.ssl if bashio::config.true 'ssl'; then - - bashio::log.info "ssl enabled. If webui don't work, disable ssl or check your certificate paths" #set variables CERTFILE=$(bashio::config 'certfile') @@ -73,12 +71,16 @@ if bashio::config.true 'ssl'; then #Send env variables export HTTPS=true export SSL=true - export BASE_URL=$BASE_URL:$(bashio::addon.port 443) + BASE_URL=$BASE_URL:$(bashio::addon.port 443) + export BASE_URL="${BASE_URL/http/https}" + + #Communication + bashio::log.info "Ssl enabled at path $BASE_URL. If webui don't work, disable ssl or check your certificate paths" fi ######### # INFOS # ######### - +cd/ ./docker-entrypoint.sh