https://github.com/vshn/openshift-nginx-modsecurity-docker
OpenShift-compatible NGINX Docker image with ModSecurity support
https://github.com/vshn/openshift-nginx-modsecurity-docker
Last synced: 2 months ago
JSON representation
OpenShift-compatible NGINX Docker image with ModSecurity support
- Host: GitHub
- URL: https://github.com/vshn/openshift-nginx-modsecurity-docker
- Owner: vshn
- License: bsd-3-clause
- Created: 2020-01-29T13:35:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T17:39:59.000Z (over 1 year ago)
- Last Synced: 2025-01-29T01:46:19.346Z (4 months ago)
- Language: Dockerfile
- Size: 13.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
= VSHN Docker image for NGINX and ModSecurity
This Docker image is based in the https://hub.docker.com/r/centos/nginx-114-centos7[centos/nginx-114-centos7] image which is compatible with OpenShift.
The build process is adapted from ModSecurity's official https://github.com/CRS-support/modsecurity-docker/blob/v3/nginx-nginx/Dockerfile[Dockerfile] .
== How to use this image:
```bash
docker pull vshn/openshift-nginx-modsecurity
```== How to build this image:
```bash
docker build . -t vshn/openshift-nginx-modsecurity
```== Environment Configuration Options (Middle Proxy Only)
The following variables MUST be con
ROUTER_PROXY_IN_HTTP_PORT::
Setup a listener on this TCP port to receive input requests
ROUTER_PROXY_OUT_HTTP_PORT
Requests the passed filtering will be sent to this TCP port
ROUTER_PROXY_MODSECURITY_RULES_FILE:
Filename containing the modsecurity rules== Testing the Middle Proxy feature
```bash
docker run --network host \
--env-file=middle_proxy_test.env \
vshn/openshift-nginx-modsecurity
``````bash
curl http://localhost:4000/nginx-health
````