mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Update Caddyfile
This commit is contained in:
parent
ef50d17c97
commit
a46bd197e3
1 changed files with 0 additions and 10 deletions
|
@ -1,10 +1,5 @@
|
||||||
# Caddy configuration for TorrentPier (Docker)
|
# Caddy configuration for TorrentPier (Docker)
|
||||||
|
|
||||||
{
|
|
||||||
auto_https {$SSL_ENABLED:off}
|
|
||||||
admin off
|
|
||||||
}
|
|
||||||
|
|
||||||
{$TP_HOST}:{$TP_PORT:80} {
|
{$TP_HOST}:{$TP_PORT:80} {
|
||||||
root * /app
|
root * /app
|
||||||
encode gzip zstd
|
encode gzip zstd
|
||||||
|
@ -27,8 +22,3 @@
|
||||||
}
|
}
|
||||||
header @html_css_js Content-Type "{mime}; charset=utf-8"
|
header @html_css_js Content-Type "{mime}; charset=utf-8"
|
||||||
}
|
}
|
||||||
|
|
||||||
http://{$TP_HOST} {
|
|
||||||
@ssl_enabled expression {env.SSL_ENABLED} == "on"
|
|
||||||
redir @ssl_enabled https://{$TP_HOST}{uri} permanent
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue