Initial commit
This commit is contained in:
40
Caddy/Caddyfile
Executable file
40
Caddy/Caddyfile
Executable 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
11
Caddy/Dockerfile
Executable 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
|
Reference in New Issue
Block a user