anime-media-centre/Caddy/Caddyfile

41 lines
673 B
Caddyfile
Raw Normal View History

2022-12-08 21:44:08 +01:00
{
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
}
}