Skip to content

Commit 732555d

Browse files
authored
Merge pull request #36 from Cryptophobia/master
chore(Dockerfile): upgrade libmodsecurity to newest v3.0.3
2 parents 186924e + c18fc2a commit 732555d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rootfs/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,14 @@ RUN buildDeps='gcc make apt-utils libgeoip-dev libssl-dev libpcre3-dev'; \
5656
apt-get install -y --no-install-recommends \
5757
$modsecurityDeps && \
5858
cd "$PREFIX/modules" && \
59-
get_src 2dd0d6dc258da729a42a94ea5118a3b16b2f3f7f91c198342a67f19378656366 "https://s3.amazonaws.com/hephy-artifacts/hephy-router/modsecurity-v3-ubuntu-16.04.tar.gz" && \
59+
get_src 136e0faf4b313817abd07365935ebd9174e8754700fe8a06281dbcbbe6d0ad50 "https://s3.amazonaws.com/hephy-artifacts/hephy-router/modsecurity-v3.0.3-ubuntu-16-04.tar.gz" && \
6060
mv usr/local/modsecurity /usr/local/modsecurity && \
6161
rm -rf usr && \
6262
get_src_file c9fd4ddb69ba1ce0a3118e529c43f87c3ab216e20900e25863e58537399d2d19 "https://s3.amazonaws.com/hephy-artifacts/hephy-router/ngx_http_modsecurity_module.so" && \
6363
# setup the modsecurity config and OWASP rules
6464
cd "$PREFIX/conf" && \
65-
get_src_file 905d47245003204b338eb1760933ab48a12c6b1a29c6f7080860b6c5d9ad337b "https://s3.amazonaws.com/hephy-artifacts/hephy-router/modsecurity.conf" && \
65+
get_src_file 5614fd0f68fc7707c0dc008d45b92de586b6e14937a41b93e80165aec454eecd "https://s3.amazonaws.com/hephy-artifacts/hephy-router/modsecurity.conf" && \
66+
curl -sSL https://github.com/SpiderLabs/ModSecurity/raw/v3/master/unicode.mapping -o unicode.mapping && \
6667
git clone https://github.com/SpiderLabs/owasp-modsecurity-crs.git && \
6768
cp -R owasp-modsecurity-crs/rules/ $PREFIX/conf/ && \
6869
cp $PREFIX/conf/owasp-modsecurity-crs/crs-setup.conf.example $PREFIX/conf/crs-setup.conf && \

0 commit comments

Comments
 (0)