Skip to content

Commit 5e1a361

Browse files
committed
Update README.md
1 parent b459daf commit 5e1a361

File tree

1 file changed

+37
-29
lines changed

1 file changed

+37
-29
lines changed

README.md

Lines changed: 37 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,37 @@
1-
# Docker Nginx
2-
3-
Dockerized Nginx with TLS 1.3 and Brotli support.
4-
5-
Based on [nginxinc/docker-nginx](https://github.com/nginxinc/docker-nginx).
6-
7-
## Config
8-
9-
To enable TLS 1.3, use:
10-
11-
```nginx
12-
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
13-
ssl_ciphers [TLS13+AESGCM+AES128|TLS13+AESGCM+AES256|TLS13+CHACHA20]:[EECDH+ECDSA+AESGCM+AES128|EECDH+ECDSA+CHACHA20]:EECDH+ECDSA+AESGCM+AES256:EECDH+ECDSA+AES128+SHA:EECDH+ECDSA+AES256+SHA:[EECDH+aRSA+AESGCM+AES128|EECDH+aRSA+CHACHA20]:EECDH+aRSA+AESGCM+AES256:EECDH+aRSA+AES128+SHA:EECDH+aRSA+AES256+SHA:RSA+AES128+SHA:RSA+AES256+SHA:RSA+3DES
14-
```
15-
To enable Brotli, use this in `http` block:
16-
17-
```nginx
18-
brotli on;
19-
brotli_comp_level 6;
20-
brotli_buffers 16 8k;
21-
brotli_min_length 20;
22-
brotli_types *;
23-
```
24-
25-
## Modification Details
26-
27-
Compiled with patched OpenSSL 1.1.1b, supports TLS 1.3 draft 23, 26, 28 and final.
28-
29-
Module [ngx_brotli](https://github.com/google/ngx_brotli) has been added for Brotli support.
1+
# Docker Nginx
2+
3+
Dockerized Nginx with TLS 1.3 and Brotli support.
4+
5+
Based on [nginxinc/docker-nginx](https://github.com/nginxinc/docker-nginx).
6+
7+
## Config
8+
9+
To enable TLS 1.3, use:
10+
11+
```nginx
12+
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
13+
ssl_ciphers [TLS13+AESGCM+AES128|TLS13+AESGCM+AES256|TLS13+CHACHA20]:[EECDH+ECDSA+AESGCM+AES128|EECDH+ECDSA+CHACHA20]:EECDH+ECDSA+AESGCM+AES256:EECDH+ECDSA+AES128+SHA:EECDH+ECDSA+AES256+SHA:[EECDH+aRSA+AESGCM+AES128|EECDH+aRSA+CHACHA20]:EECDH+aRSA+AESGCM+AES256:EECDH+aRSA+AES128+SHA:EECDH+aRSA+AES256+SHA:RSA+AES128+SHA:RSA+AES256+SHA:RSA+3DES;
14+
```
15+
To enable Brotli, use this in `http` block:
16+
17+
```nginx
18+
brotli on;
19+
brotli_comp_level 6;
20+
brotli_buffers 16 8k;
21+
brotli_min_length 20;
22+
brotli_types *;
23+
```
24+
25+
## Modification Details
26+
27+
Compiled with patched OpenSSL 1.1.1b, supports TLS 1.3 draft 23, 26, 28 and final.
28+
29+
Module [ngx_brotli](https://github.com/google/ngx_brotli) has been added for Brotli support.
30+
31+
## Build
32+
33+
```
34+
git clone [email protected]:hackinit/docker-nginx.git
35+
cd docker-nginx
36+
docker build -t nginx:1.15.9-modified .
37+
```

0 commit comments

Comments
 (0)