Skip to content

Commit 572ba7d

Browse files
committed
up readme and fix compose yaml spaces
1 parent 77a7f33 commit 572ba7d

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Nginx common useful configuration
22

3-
[<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Presidential_Standard_of_Belarus_%28fictional%29.svg/240px-Presidential_Standard_of_Belarus_%28fictional%29.svg.png" width="20" height="20" alt="Voices From Belarus" />](https://voicesfrombelarus.org/) [![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://vshymanskyy.github.io/StandWithUkraine)
3+
[Stand with Belarus against dictatorship <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Presidential_Standard_of_Belarus_%28fictional%29.svg/240px-Presidential_Standard_of_Belarus_%28fictional%29.svg.png" width="20" height="20" alt="Voices From Belarus" />](https://bysol.org/en/) [![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://vshymanskyy.github.io/StandWithUkraine)
44

55
Nginx configs. Not the most powerful, productive or the best one. Just useful configs, which I would like to see in default nginx packages out of the box 😆
66
Bonus: fail2ban, filebeat, dockerfile and docker-compose configs for nginx :)

docker-compose.yml

+22-22
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@ version: '3'
22

33
services:
44
nginx:
5-
image: nginx
6-
volumes:
7-
# you can copy this configs into /etc/nginx and mount whole dir
8-
- nginx.conf:/etc/nginx/nginx.conf
9-
- conf.d:/etc/nginx/conf.d
10-
- snippets:/etc/nginx/snippets
11-
- templates:/etc/nginx/templates
12-
#- /etc/nginx:/etc/nginx
13-
#- /etc/letsencrypt:/etc/letsencrypt
14-
- /etc/ssl:/etc/ssl
15-
#- /var/log/nginx:/var/log/nginx
16-
- /var/www:/var/www
17-
ports:
18-
- 80:80
19-
- 443:443
20-
command: nginx -g 'daemon off; master_process on;'
21-
ulimits:
22-
nproc: 65535
23-
nofile:
24-
soft: 100000
25-
hard: 100000
26-
restart: unless-stopped
5+
image: nginx
6+
volumes:
7+
# you can copy this configs into /etc/nginx and mount whole dir
8+
- nginx.conf:/etc/nginx/nginx.conf
9+
- conf.d:/etc/nginx/conf.d
10+
- snippets:/etc/nginx/snippets
11+
- templates:/etc/nginx/templates
12+
#- /etc/nginx:/etc/nginx
13+
#- /etc/letsencrypt:/etc/letsencrypt
14+
- /etc/ssl:/etc/ssl
15+
#- /var/log/nginx:/var/log/nginx
16+
- /var/www:/var/www
17+
ports:
18+
- 80:80
19+
- 443:443
20+
command: nginx -g 'daemon off; master_process on;'
21+
ulimits:
22+
nproc: 65535
23+
nofile:
24+
soft: 100000
25+
hard: 100000
26+
restart: unless-stopped
2727
logging:
2828
driver: json-file
2929
options:

0 commit comments

Comments
 (0)