mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Update Caddyfile
This commit is contained in:
parent
2cdada6bc2
commit
03f9d4571b
1 changed files with 4 additions and 4 deletions
|
@ -38,7 +38,7 @@
|
||||||
header @html_css_js Content-Type "{mime}; charset=utf-8"
|
header @html_css_js Content-Type "{mime}; charset=utf-8"
|
||||||
}
|
}
|
||||||
|
|
||||||
# HTTPS redirect (only if SSL is enabled)
|
http://{$TP_HOST} {
|
||||||
# http://{$TP_HOST} {
|
@ssl_enabled expression {env.SSL_ENABLED} == "on"
|
||||||
# redir https://{$TP_HOST}{uri} permanent
|
redir @ssl_enabled https://{$TP_HOST}{uri} permanent
|
||||||
# }
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue