You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+44-5Lines changed: 44 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,26 @@
1
1
## What is this?
2
2
3
-
Stable and up-to-date [nginx](https://nginx.org/en/CHANGES) with [Google's `brotli` compression](https://github.com/google/ngx_brotli) and [Grade A+ SSL config](https://ssl-config.mozilla.org/)
3
+
Stable and up-to-date [nginx](https://nginx.org/en/CHANGES) with [QUIC + HTTP/3 support](https://developers.cloudflare.com/http3/), [Google's `brotli` compression](https://github.com/google/ngx_brotli) and [Grade A+ SSL config](https://ssl-config.mozilla.org/)
4
4
5
5
6
6
## How to use this image
7
7
As this project is based on the official [nginx image](https://hub.docker.com/_/nginx/) look for instructions there. In addition to the standard configuration directives, you'll be able to use the brotli module specific ones, see [here for official documentation](https://github.com/google/ngx_brotli#configuration-directives)
8
8
9
9
```
10
-
docker pull macbre/nginx-brotli:1.19.10
10
+
docker pull macbre/nginx-brotli:1.19.6-http3
11
11
```
12
12
13
+
Please refer to [the list of image tags](https://hub.docker.com/_/nginx/) as there more recent nginx versions there (but without http3 support).
14
+
13
15
## What's inside
14
16
15
17
```
16
18
$ docker run -it macbre/nginx-brotli nginx -V
17
-
nginx version: nginx/1.19.10
19
+
nginx version: nginx/1.19.6 (quiche-567cc5e)
18
20
built by gcc 10.2.1 20201203 (Alpine 10.2.1_pre1)
19
-
built with OpenSSL 1.1.1k 25 Mar 2021
21
+
built with OpenSSL 1.1.1 (compatible; BoringSSL) (running with BoringSSL)
*`.conf` files mounted in `/etc/nginx/main.d` will be included in the `main` nginx context (e.g. you can call [`env` directive](http://nginx.org/en/docs/ngx_core_module.html#env) there)
35
37
*`.conf` files mounted in `/etc/nginx/conf.d` will be included in the `http` nginx context
38
+
39
+
## QUIC + HTTP/3 support
40
+
41
+
<imgwidth="577"alt="Screenshot 2021-05-19 at 16 31 10"src="https://user-images.githubusercontent.com/1929317/118840921-baf7d300-b8bf-11eb-8c0f-e57d573a28ce.png">
42
+
43
+
Please refer to `tests/https.conf` config file for an example config used by the tests. And to Cloudflare docs on [how to enable http/3 support in your browser](https://developers.cloudflare.com/http3/firefox).
44
+
45
+
```
46
+
server {
47
+
# quic and http/3
48
+
listen 443 quic reuseport;
49
+
50
+
# http/2
51
+
listen 443 ssl http2;
52
+
53
+
server_name localhost; # customize to match your domain
54
+
55
+
# you need to mount these files when running this container
56
+
ssl_certificate /etc/nginx/ssl/localhost.crt;
57
+
ssl_certificate_key /etc/nginx/ssl/localhost.key;
58
+
59
+
# Enable all TLS versions (TLSv1.3 is required for QUIC).
0 commit comments