Sign inSign up

thib4ut/nginx-modsecurity

By thib4ut

Updated 18 days ago

NGINX Reverse Proxy with ModSecurity

Image
Web servers
0

3.9K

thib4ut/nginx-modsecurity repository overview

Basic NGINX docker image with ModSecurity preconfigured, including the OWASP Core Rule Set.

  • The latest Ubuntu version will be used to build NGINX.
  • The latest version of ModSecurity will be grabbed from their GitHub repo (master branch)
  • The container runs as user "nginx" (non root) with a default UID and GID of 1101

More info:

Sample nginx.conf file

worker_processes  1;
pid        /tmp/nginx.pid;

http {
  proxy_temp_path /tmp/proxy_temp;
  client_body_temp_path /tmp/client_temp;
  fastcgi_temp_path /tmp/fastcgi_temp;
  uwsgi_temp_path /tmp/uwsgi_temp;
  scgi_temp_path /tmp/scgi_temp;

  include       mime.types;
  default_type  application/octet-stream;

       server {
        ...
        modsecurity on;
        modsecurity_rules_file /etc/nginx/modsecurity.d/include.conf;
         ...
        }
}

Tag summary

Content type

Image

Digest

sha256:a7294355f

Size

159.4 MB

Last updated

18 days ago

docker pull thib4ut/nginx-modsecurity