Skip to content

Commit

Permalink
Merge pull request #300 from isavcic/tmp-permissions-fix
Browse files Browse the repository at this point in the history
Fix /tmp/modsecurity/* directories permissions so nginx workers can write to them
  • Loading branch information
theseion authored Nov 7, 2024
2 parents ac69620 + ab05e3f commit f088c94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openresty/Dockerfile-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,9 @@ RUN set -eux; \
mkdir /var/log/nginx; \
mkdir -p /tmp/modsecurity/data; \
mkdir -p /tmp/modsecurity/upload; \
mkdir -p /tmp/modsecurity/tmp; \
mkdir -p /tmp/modsecurity/tmp; \
mkdir -p /usr/local/modsecurity; \
chown -R nobody:nobody /tmp/modsecurity; \
# Comment out the SecDisableBackendCompression option since it is not supported in V3
sed -i 's/^\(SecDisableBackendCompression .*\)/# \1/' /usr/local/openresty/nginx/templates/modsecurity.d/modsecurity-override.conf.template; \
ln -s /usr/local/modsecurity/lib/libmodsecurity.so.${MODSEC3_VERSION} /usr/local/modsecurity/lib/libmodsecurity.so.3.0; \
Expand Down

0 comments on commit f088c94

Please sign in to comment.