An open API service indexing awesome lists of open source software.

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

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
````