Skip to content

Commit 37d99ea

Browse files
authored
Merge pull request #292 from Dr-Lazarus-V2/patch-3
fix: modify Nginx Dockerfile to address OWASP ModSecurity Issue #2041
2 parents 443a1a7 + 1acb04c commit 37d99ea

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

nginx/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ RUN set -eux; \
2121
git \
2222
libcurl4-gnutls-dev \
2323
libfuzzy-dev \
24-
libgeoip-dev \
2524
liblua${LUA_VERSION}-dev \
2625
libpcre3-dev \
2726
libpcre2-dev \
@@ -51,7 +50,7 @@ RUN set -eux; \
5150
sed -ie "s/i386-linux-gnu/${ARCH}/g" build/ssdeep.m4; \
5251
sed -ie "s/i386-linux-gnu/${ARCH}/g" build/pcre2.m4; \
5352
./build.sh; \
54-
./configure --with-yajl --with-ssdeep --with-geoip --with-pcre2 --with-maxmind --enable-silent-rules; \
53+
./configure --with-yajl --with-ssdeep --with-pcre2 --with-maxmind --enable-silent-rules; \
5554
make install; \
5655
strip /usr/local/modsecurity/lib/lib*.so*
5756

nginx/Dockerfile-alpine

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN set -eux; \
1818
curl-dev \
1919
g++ \
2020
gcc \
21-
geoip-dev \
2221
git \
2322
libc-dev \
2423
libfuzzy2-dev \
@@ -48,7 +47,7 @@ RUN set -eux; \
4847
sed -ie "s/i386-linux-gnu/${ARCH}/g" build/ssdeep.m4; \
4948
sed -ie "s/i386-linux-gnu/${ARCH}/g" build/pcre2.m4; \
5049
./build.sh; \
51-
./configure --with-yajl --with-ssdeep --with-lmdb --with-geoip --with-pcre2 --with-maxmind --enable-silent-rules; \
50+
./configure --with-yajl --with-ssdeep --with-lmdb --with-pcre2 --with-maxmind --enable-silent-rules; \
5251
make install; \
5352
strip /usr/local/modsecurity/lib/lib*.so*
5453

0 commit comments

Comments
 (0)