File tree 2 files changed +4
-9
lines changed
2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 19
19
set_real_ip_from unix:;
20
20
- replace :
21
21
filename : " /etc/nginx/conf.d/discourse.conf"
22
- from : /listen 443 ssl spdy ;/
22
+ from : /listen 443 ssl http2 ;/
23
23
to : |
24
- listen unix:/shared/nginx.https.sock ssl spdy ;
24
+ listen unix:/shared/nginx.https.sock ssl http2 ;
25
25
set_real_ip_from unix:;
Original file line number Diff line number Diff line change 17
17
filename : " /etc/nginx/conf.d/discourse.conf"
18
18
from : /listen 80;\s+gzip on;/m
19
19
to : |
20
- listen 443 ssl spdy;
21
- spdy_keepalive_timeout 300; # up from 180 secs default
20
+ listen 443 ssl http2;
22
21
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
23
22
# courtesy of https://wiki.mozilla.org/Security/Server_Side_TLS#Recommended_configurations
24
23
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA;
29
28
ssl_dhparam /shared/ssl/dhparams.pem;
30
29
31
30
ssl_session_tickets off;
31
+ ssl_session_timeout 1d;
32
32
ssl_session_cache shared:SSL:1m;
33
33
34
- # enable SPDY header compression
35
- # The server CAN enable it without any known security risk:
36
- # https://github.com/18F/tls-standards/issues/24
37
- spdy_headers_comp 6;
38
-
39
34
# remember the certificate for a year and automatically connect to HTTPS for this domain
40
35
add_header Strict-Transport-Security 'max-age=31536000';
41
36
You can’t perform that action at this time.
0 commit comments