From 77fedb7f561e4c229de4c7af152f44c183990bc9 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 20 Sep 2021 13:29:28 +0200 Subject: [PATCH] Update nginx.txt --- mealie/rootfs/nginx.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mealie/rootfs/nginx.txt b/mealie/rootfs/nginx.txt index e051f2f2c..198a56e9d 100644 --- a/mealie/rootfs/nginx.txt +++ b/mealie/rootfs/nginx.txt @@ -39,6 +39,17 @@ if bashio::supervisor.ping; then '-----------------------------------------------------------' fi +################ +# SSL CONFIG # +################ + +bashio::config.require.ssl +if bashio::config.true 'ssl'; then + bashio::log.info "ssl enabled" + sed -i "s/:80/:443/g" /app/Caddyfile + sed -i "s/auto_https off/auto_https on/g" /app/Caddyfile +fi + ########### # Ingress # ###########