41 lines
673 B
Caddyfile
41 lines
673 B
Caddyfile
|
{
|
||
|
acme_dns cloudflare {$CF_API_TOKEN}
|
||
|
}
|
||
|
|
||
|
(redirect) {
|
||
|
@http {
|
||
|
protocol http
|
||
|
}
|
||
|
redir @http https://{host}{uri} permanent
|
||
|
}
|
||
|
|
||
|
|
||
|
*.{$DOMAIN} {
|
||
|
|
||
|
@jellyfin host {$JELLYFIN_DOMAIN}
|
||
|
handle @jellyfin {
|
||
|
reverse_proxy jellyfin:8096
|
||
|
}
|
||
|
|
||
|
@shoko host {$SHOKO_ANIME_DOMAIN}
|
||
|
handle @shoko {
|
||
|
reverse_proxy shoko_server:8111
|
||
|
}
|
||
|
|
||
|
@torrent host {$TORRENT_DOMAIN}
|
||
|
handle @torrent {
|
||
|
reverse_proxy qbittorrent:9090
|
||
|
}
|
||
|
|
||
|
@ping host ping.{$DOMAIN}
|
||
|
handle @ping {
|
||
|
respond "Pong!"
|
||
|
}
|
||
|
|
||
|
handle {
|
||
|
abort
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|