diff --git a/Containers/mastercontainer/Caddyfile b/Containers/mastercontainer/Caddyfile index 64a90526..c4fa9944 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,14 @@ } } +http://:80 { + redir https://{host}{uri} +} + +http://:8443 { + redir https://{host}:8443{uri} +} + https://:8443 { reverse_proxy localhost:8000