mirror of
https://github.com/elAgala/server-initializer.git
synced 2026-02-14 05:06:18 +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
|
# Install xcaddy and build Caddy with plugins
|
||||||
RUN xcaddy build \
|
RUN xcaddy build \
|
||||||
--with github.com/corazawaf/coraza-caddy/v2@v2.0.0 \
|
--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
|
# Stage to download OWASP CRS
|
||||||
FROM alpine:latest AS crs
|
FROM alpine:latest AS crs
|
||||||
RUN apk add --no-cache git && \
|
RUN apk add --no-cache git && \
|
||||||
git clone --depth 1 --branch v4.0.0 \
|
git clone --depth 1 --branch v4.0.0 \
|
||||||
https://github.com/coreruleset/coreruleset.git /coreruleset && \
|
https://github.com/coreruleset/coreruleset.git /coreruleset && \
|
||||||
mv /coreruleset/crs-setup.conf.example /coreruleset/crs-setup.conf
|
mv /coreruleset/crs-setup.conf.example /coreruleset/crs-setup.conf
|
||||||
|
|
||||||
# Final stage
|
# Final stage
|
||||||
FROM caddy:latest
|
FROM caddy:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user