mirror of https://github.com/zulip/zulip.git
nginx: Enable TLS 1.3 if supported.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
d577537304
commit
0ae2c5c96e
|
@ -65,7 +65,7 @@ class zulip::nginx {
|
|||
group => 'root',
|
||||
mode => '0644',
|
||||
notify => Service['nginx'],
|
||||
source => 'puppet:///modules/zulip/nginx/nginx.conf',
|
||||
content => template('zulip/nginx.conf.template.erb'),
|
||||
}
|
||||
|
||||
file { '/etc/nginx/uwsgi_params':
|
||||
|
|
|
@ -53,7 +53,11 @@ http {
|
|||
ssl_session_cache shared:SSL:50m;
|
||||
ssl_session_tickets off;
|
||||
ssl_dhparam /etc/nginx/dhparam.pem;
|
||||
<% if scope["zulip::base::release_name"] == "stretch" or scope["zulip::base::release_name"] == "xenial" -%>
|
||||
ssl_protocols TLSv1.2;
|
||||
<% else -%>
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
<% end -%>
|
||||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
||||
ssl_prefer_server_ciphers off;
|
||||
ssl_stapling on;
|
Loading…
Reference in New Issue