Initial commit

This commit is contained in:
2022-12-08 21:44:08 +01:00
commit cf074be1a8
11 changed files with 416 additions and 0 deletions

40
Caddy/Caddyfile Executable file
View File

@ -0,0 +1,40 @@
{
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
}
}

11
Caddy/Dockerfile Executable file
View File

@ -0,0 +1,11 @@
ARG CADDY_VERSION=2.6.2
FROM caddy:${CADDY_VERSION}-builder AS builder
RUN xcaddy build \
--with github.com/caddy-dns/cloudflare \
--with github.com/greenpau/caddy-security
FROM caddy:${CADDY_VERSION}-alpine
COPY --from=builder /usr/bin/caddy /usr/bin/caddy