Skip to content

Commit

Permalink
Add modsecurity
Browse files Browse the repository at this point in the history
  • Loading branch information
zengxs committed Nov 22, 2024
1 parent 6266f53 commit 61a398e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@
[submodule "third-deps/sregex"]
path = third-deps/sregex
url = https://github.com/openresty/sregex.git
[submodule "modules/zstd-nginx-module"]
path = modules/zstd-nginx-module
url = https://github.com/tokers/zstd-nginx-module.git
[submodule "modules/ModSecurity-nginx"]
path = modules/ModSecurity-nginx
url = https://github.com/owasp-modsecurity/ModSecurity-nginx.git
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ RUN set -ex \
curl \
libssl-dev \
libpcre3-dev \
zlib1g-dev
zlib1g-dev \
libmodsecurity-dev

# install build dependencies for additional dynamic modules
RUN set -ex \
Expand Down Expand Up @@ -69,7 +70,7 @@ RUN set -ex \
--add-dynamic-module=/usr/src/modules/headers-more-nginx-module \
--add-dynamic-module=/usr/src/modules/ngx_devel_kit \
--add-dynamic-module=/usr/src/modules/iconv-nginx-module \
--add-dynamic-module=/usr/src/modules/zstd-nginx-module \
--add-dynamic-module=/usr/src/modules/ModSecurity-nginx \
| bash -x \
# build modules
&& make modules -j$(nproc) \
Expand Down Expand Up @@ -129,4 +130,6 @@ RUN set -ex \
libxslt1.1 \
libmaxminddb0 \
libzstd1 \
libmodsecurity3 \
modsecurity-crs \
&& rm -rf /var/lib/apt/lists/*
1 change: 1 addition & 0 deletions modules/ModSecurity-nginx
Submodule ModSecurity-nginx added at ef6499
1 change: 0 additions & 1 deletion modules/zstd-nginx-module
Submodule zstd-nginx-module deleted from f4ba11

0 comments on commit 61a398e

Please sign in to comment.