From d40f9fc94e4ca4a50e78514dc7c726d2081f0f06 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 6 Nov 2022 19:03:24 +0100 Subject: [PATCH] Add base_url_portless option https://github.com/alexbelgium/hassio-addons/issues/540 --- webtrees/rootfs/etc/cont-init.d/99-run.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webtrees/rootfs/etc/cont-init.d/99-run.sh b/webtrees/rootfs/etc/cont-init.d/99-run.sh index 01e4d74f4..3b11f8d45 100644 --- a/webtrees/rootfs/etc/cont-init.d/99-run.sh +++ b/webtrees/rootfs/etc/cont-init.d/99-run.sh @@ -9,6 +9,13 @@ export BASE_URL=$(bashio::config 'BASE_URL'):$(bashio::addon.port 80) #export LANG=$(bashio::config 'LANG') +############## +# CLOUDFLARE # +############## + +if bashio::config.true "base_url_portless"; then + export BASE_URL=$(bashio::config 'BASE_URL') +fi ################### # Define database #