From 8d0a2d3199cab00cf2bc44a0a2a6a644ad4c6487 Mon Sep 17 00:00:00 2001 From: Emil Marklund Date: Thu, 19 May 2022 16:26:11 +0200 Subject: [PATCH] Fix https redirects Signed-off-by: Emil Marklund --- Containers/mastercontainer/Caddyfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Containers/mastercontainer/Caddyfile b/Containers/mastercontainer/Caddyfile index 64a90526..646d37e8 100644 --- a/Containers/mastercontainer/Caddyfile +++ b/Containers/mastercontainer/Caddyfile @@ -1,4 +1,6 @@ { + # auto_https will create redirects for https://{host}:8443 instead of https://{host} + # https redirects are added manually in the http://:80 block auto_https disable_redirects storage file_system { @@ -6,6 +8,10 @@ } } +http://:80 { + redir https://{host}{uri} +} + https://:8443 { reverse_proxy localhost:8000