Update Caddy with Layer4 plugin

This commit is contained in:
2025-03-03 22:36:30 -03:00
parent 46ba00f623
commit a380af274f
2 changed files with 9 additions and 4 deletions

View File

@@ -4,14 +4,15 @@ FROM caddy:builder AS builder
# Install xcaddy and build Caddy with plugins
RUN xcaddy build \
--with github.com/corazawaf/coraza-caddy/v2@v2.0.0 \
--with github.com/hslatman/caddy-crowdsec-bouncer/http@v0.8.1
--with github.com/hslatman/caddy-crowdsec-bouncer/http@v0.8.1 \
--with github.com/mholt/caddy-l4
# Stage to download OWASP CRS
FROM alpine:latest AS crs
RUN apk add --no-cache git && \
git clone --depth 1 --branch v4.0.0 \
https://github.com/coreruleset/coreruleset.git /coreruleset && \
mv /coreruleset/crs-setup.conf.example /coreruleset/crs-setup.conf
git clone --depth 1 --branch v4.0.0 \
https://github.com/coreruleset/coreruleset.git /coreruleset && \
mv /coreruleset/crs-setup.conf.example /coreruleset/crs-setup.conf
# Final stage
FROM caddy:latest