Caddy: Migrate redirects to placeholders

- We want customers to now copy the example Caddyfile so this still gives people the option but also makes it easier for customers who don't want to redirect themselves
This commit is contained in:
James Loh
2025-07-15 16:21:12 +10:00
parent 8d0d565df9
commit b2a3d75490

View File

@@ -31,8 +31,16 @@
}
}
# Redirect www to non-www (optional)
www.{$DOMAIN} {
import snippets/Logging
redir https://{$DOMAIN}{uri}
}
# If you want to redirect the www variant of your domain to the non-www varient uncomment the below 4 lines
# Note: You must have DNS setup correctly for this to work
# www.{$DOMAIN} {
# import snippets/Logging
# redir https://{$DOMAIN}{uri}
# }
# If you want to redirect the non-www variant of your domain to the www varient uncomment the below 4 lines and replace REPLACE_ME with your domain
# Note: You must have DNS setup correctly for this to work
# REPLACE_ME {
# import snippets/Logging
# redir https://REPLACE_ME{uri}
# }