Add Caddy to deployment

This commit is contained in:
2025-12-31 21:01:57 +03:00
Unverified
parent e163484fe5
commit 0469b93274
4 changed files with 112 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
#
# Custom Caddy built with:
# - Rate limit plugin
#
FROM caddy:2-builder AS builder
RUN xcaddy build \
--with github.com/mholt/caddy-ratelimit
RUN curl -o /etc/ssl/cloudflare-origin.crt https://developers.cloudflare.com/ssl/static/origin_ca_rsa_root.pem
FROM caddy:2
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
COPY Caddyfile /etc/caddy/Caddyfile