elisiano / docker-nginx-modsecurity

Docker file from nginx:alpine modified to include ModSecurity (lib v3) + ModSecurity-nginx connector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NGINX with libModSecurity + ModSecurity-nginx connector

The dockerfile of this container has been copied from the official nginx repo (alpine-perl variant) and has been modified to add ModSecurity library (v3) + ModSecurity nginx connector.

You can refer to the official nginx image documentation for instructions on how to use this image.

When you provide your configuration you can enable modsecurity. Please refer to their wiki for documentation.

NOTE: no rules are shipped with this container, if you enable modsecurity you need to provide your own

Extras

If you're curious to know the difference from this dockerfile and the upstream one:

diff <(curl -fsL https://github.com/nginxinc/docker-nginx/raw/1.15.9/mainline/alpine-perl/Dockerfile) <(curl -fsL http://github.com/elisiano/docker-nginx-modsecurity/raw/master/Dockerfile)

About

Docker file from nginx:alpine modified to include ModSecurity (lib v3) + ModSecurity-nginx connector


Languages

Language:Dockerfile 100.0%