From 14558c78d30b3e203e759338b68c669020818bbf Mon Sep 17 00:00:00 2001 From: Naman Arora Date: Tue, 10 Sep 2024 00:36:23 +1000 Subject: [PATCH] Include https redirection in Caddy template (#9) * Remove use of port 443 from LAN * Add license badge * Keep 443 on cloud vps * Keep 443 on cloud vps * Include https redirect in caddy template --- templates/caddyfile.template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/caddyfile.template b/templates/caddyfile.template index 7bbbcc7..c857a61 100644 --- a/templates/caddyfile.template +++ b/templates/caddyfile.template @@ -2,6 +2,10 @@ email {{ ssl_email }} } -{{ duckdns_domain }} { +http://{{ duckdns_domain }} { + https://{{ duckdns_domain }} permanent +} + +https://{{ duckdns_domain }} { reverse_proxy http://10.20.0.2:80 } \ No newline at end of file