Skip to content

Commit

Permalink
add njs module
Browse files Browse the repository at this point in the history
  • Loading branch information
jawadqur authored Jan 24, 2025
1 parent f0be556 commit 47d6651
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LABEL name="revproxy-nginx-modsec"
# Install all necessary packages in one layer
RUN dnf update -y && \
dnf install -y \
nginx \
nginx-module-njs \
gcc \
gcc-c++ \
git \
Expand Down Expand Up @@ -60,8 +60,8 @@ RUN NGINX_VERSION=$(nginx -v 2>&1 | cut -d '/' -f 2) && \
cd nginx-${NGINX_VERSION} && \
./configure --with-compat --add-dynamic-module=../ModSecurity-nginx && \
make modules && \
mkdir -p /usr/lib64/nginx/modules/ && \
cp objs/ngx_http_modsecurity_module.so /usr/lib64/nginx/modules/
mkdir -p /etc/nginx/modules/ && \
cp objs/ngx_http_modsecurity_module.so /etc/nginx/modules/

# Set up ModSecurity configuration
RUN mkdir -p /etc/nginx/modsec && \
Expand Down

0 comments on commit 47d6651

Please sign in to comment.