Skip to content

Commit 15c2184

Browse files
authored
Merge pull request #3 from macbre/ssl-grade-a
SSL grade A+ handling
2 parents c7379ed + db26155 commit 15c2184

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
121121
&& rm -rf /usr/src/nginx-$NGINX_VERSION \
122122
&& rm -rf /usr/src/ngx_brotli \
123123
\
124+
# https://tools.ietf.org/html/rfc7919
125+
# https://github.com/mozilla/ssl-config-generator/blob/master/docs/ffdhe2048.txt
126+
&& curl -fSL https://ssl-config.mozilla.org/ffdhe2048.txt > /etc/ssl/dhparam.pem \
127+
\
124128
# Bring in gettext so we can get `envsubst`, then throw
125129
# the rest away. To do this, we need to install `gettext`
126130
# then move `envsubst` out of the way so `gettext` can

readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,11 @@ docker pull macbre/nginx-brotli:1.17.9
99
```
1010

1111
> [nginx release notes](https://nginx.org/en/CHANGES)
12+
13+
# SSL Grade A+ handling
14+
15+
Please refer to [Mozilla's SSL Configuration Generator](https://ssl-config.mozilla.org/). This image has `https://ssl-config.mozilla.org/ffdhe2048.txt` fetched and stored in `/etc/ssl/dhparam.pem`:
16+
17+
```
18+
ssl_dhparam /etc/ssl/dhparam.pem;
19+
```

0 commit comments

Comments
 (0)