Skip to content

Commit 4e67067

Browse files
committed
Formating
Signed-off-by: Scott R. Shinn <[email protected]>
1 parent 77553aa commit 4e67067

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

README.md

+15-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
About
1+
**About**
22

33
This container implements the Atomicorp NGINX Web Application Firewall (ModSecurity v3). It is designed to act as a reverse proxy, and supports automatic container detection and configuration. Rule policies are shared with the container over a volume
44

55

6-
Installation
6+
**Installation**
77

88
1) Register for WAF rule updates at https://atomicorp.com/pricing/
99

1010

1111
2) Create volume directories for /etc/nginx/conf.d and /etc/httpd/modsecurity.d
1212

13+
1314
mkdir -p ~/waf/conf.d
1415
mkdir -p ~/waf/modsecurity.d
1516

@@ -18,34 +19,39 @@ Installation
1819
tar xvf nginx-waf-201802271105.tar.gz
1920

2021
4) Copy the master nginx config:
21-
22-
cp rules/conf/00_mod_security.conf ~/waf/conf.d
22+
23+
cp rules/conf/00_mod_security.conf ~/waf/conf.d
2324
cp rules/conf/tortix_waf.conf ~/waf/modsecurity.d/
2425
cp rules/* ~/waf/modsecurity.d/
2526

2627

2728

28-
Usage
29+
**Usage**
30+
31+
32+
33+
**Basic**
2934

30-
Basic
3135

3236
DEFAULT_HOST declares the nginx default host
3337

3438
docker run -d -p 80:80 -e DEFAULT_HOST=www.example.com -v /var/run/docker.sock:/tmp/docker.sock:ro -v ~/waf/conf.d:/etc/nginx/conf.d -v ~/waf/modsecurity.d:/etc/httpd/modsecurity.d atomicorp/nginx-waf-docker
3539

36-
With SSL certificates
40+
41+
42+
**With SSL certificates**
3743

3844
docker run -d -p 80:80 -p 443:443 -v /path/to/certs:/etc/nginx/certs -v /var/run/docker.sock:/tmp/docker.sock:ro -v ~/waf/conf.d:/etc/nginx/conf.d -v ~/waf/modsecurity.d:/etc/httpd/modsecurity.d atomicorp/nginx-waf-proxy
3945

4046

41-
Name-Based virtual host support
47+
**Name-Based virtual host support**
4248

4349
available with the environmental variable -e VIRTUAL_HOST=www.example.com. Note that name based virtual host certificates (if used)use naming convention <VIRTUAL_HOST>.key and <VIRTUAL_HOST>.crt Example: www.example.com.key and www.example.com.crt
4450

4551
docker run -e VIRTUAL_HOST=www.example.com -d -p 80:80 -p 443:443 -v /path/to/certs:/etc/nginx/certs -v /var/run/docker.sock:/tmp/docker.sock:ro -v ~/waf/conf.d:/etc/nginx/conf.d -v ~/waf/modsecurity.d:/etc/httpd/modsecurity.d atomicorp/nginx-waf-proxy
4652

4753

48-
Thanks:
54+
**Thanks:**
4955

5056
This project is a CentOS/RHEL based derivative of the project at:
5157

0 commit comments

Comments
 (0)