{"id":23428697,"url":"https://github.com/marknjunge/docker-nginx-modsecurity","last_synced_at":"2025-08-09T21:09:55.086Z","repository":{"id":110814803,"uuid":"215591558","full_name":"MarkNjunge/docker-nginx-modsecurity","owner":"MarkNjunge","description":"NGINX set up with ModSecurity enabled and configured with Open Web Application Security Project Core Rule Set (OWASP CRS). All running on docker.","archived":false,"fork":false,"pushed_at":"2019-10-16T16:14:43.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T07:29:07.891Z","etag":null,"topics":["docker","modsecurity","modsecurity-nginx","nginx","nginx-docker","owasp","owasp-crs-core-rule-set"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarkNjunge.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-16T16:14:24.000Z","updated_at":"2021-10-21T05:36:36.000Z","dependencies_parsed_at":"2023-04-04T08:30:52.350Z","dependency_job_id":null,"html_url":"https://github.com/MarkNjunge/docker-nginx-modsecurity","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkNjunge%2Fdocker-nginx-modsecurity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkNjunge%2Fdocker-nginx-modsecurity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkNjunge%2Fdocker-nginx-modsecurity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkNjunge%2Fdocker-nginx-modsecurity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarkNjunge","download_url":"https://codeload.github.com/MarkNjunge/docker-nginx-modsecurity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045258,"owners_count":21038557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","modsecurity","modsecurity-nginx","nginx","nginx-docker","owasp","owasp-crs-core-rule-set"],"created_at":"2024-12-23T07:14:30.363Z","updated_at":"2025-04-09T13:19:53.814Z","avatar_url":"https://github.com/MarkNjunge.png","language":"Shell","readme":"# Docker + NGINX + ModSecurity + OWASP CRS\n\nNGINX set up with ModSecurity enabled and configured with Open Web Application Security Project Core Rule Set (OWASP CRS). All running on docker.\n\n```\ndocker run --name nginx-modsec -d -p 80:80 marknjunge/nginx-modsec\n```\n\n## Installation\n\n```bash\ngit clone https://marknjunge.com/nginx-modsec.git\n\ncd nginx-modsec\n\ndocker build -t marknjunge/nginx-modsec\nor\n./build.sh\n```\n\n**Note:** Building takes a while (even up to 15 minutes) because of compiling ModSecurity. Unless you have reason not to, it's better to use my image `marknjunge/nginx-modsec` as a base and copy your own config files.\n\n## Usage\n\n```\ndocker run --name nginx-modsec -d -p 80:80 marknjunge/nginx-modsec\n```\n\n## NGINX Configuration\n\nTo modify NGINX Configuration, edit [./nginx/nginx.conf](./nginx/nginx.conf) and [./nginx/conf.d/](./nginx/conf.d/).\n\n## ModSecurity Configuration\n\nModSecurity is pre-configured with [OWASP CRS](https://www.owasp.org/index.php/Category:OWASP_ModSecurity_Core_Rule_Set_Project).\n\nTo add your own rules, modify [./modsec/main.conf](./modsec/main.conf).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarknjunge%2Fdocker-nginx-modsecurity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarknjunge%2Fdocker-nginx-modsecurity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarknjunge%2Fdocker-nginx-modsecurity/lists"}