mirror of
https://github.com/elAgala/server-initializer.git
synced 2026-02-13 21:06:16 +00:00
Update Caddy with Layer4 plugin
This commit is contained in:
4
Makefile
Normal file
4
Makefile
Normal file
@@ -0,0 +1,4 @@
|
||||
build-caddy:
|
||||
@echo "Building Caddy FULL image"
|
||||
docker build -t ghcr.io/elagala/server-initializer/caddy-waf-crowdsec:latest -f images/caddy_full/Dockerfile .
|
||||
docker push ghcr.io/elagala/server-initializer/caddy-waf-crowdsec:latest
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user