Update Caddyfile

This commit is contained in:
Roman Kelesidis 2025-08-21 19:51:11 +03:00
commit 03f9d4571b
No known key found for this signature in database
GPG key ID: D8157C4D4C4C6DB4

View file

@ -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
}