From 03f9d4571b1adf2582a2e6d968d203b090deed37 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 21 Aug 2025 19:51:11 +0300 Subject: [PATCH] Update Caddyfile --- install/docker/Caddyfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install/docker/Caddyfile b/install/docker/Caddyfile index fbfea0faa..4c2846577 100644 --- a/install/docker/Caddyfile +++ b/install/docker/Caddyfile @@ -38,7 +38,7 @@ header @html_css_js Content-Type "{mime}; charset=utf-8" } -# HTTPS redirect (only if SSL is enabled) -# http://{$TP_HOST} { -# redir https://{$TP_HOST}{uri} permanent -# } +http://{$TP_HOST} { + @ssl_enabled expression {env.SSL_ENABLED} == "on" + redir @ssl_enabled https://{$TP_HOST}{uri} permanent +}