1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2024-11-22 11:56:31 +00:00

add support for ssl_dhparams to prevent 'Logjam' attack

This commit is contained in:
Kuo-Cheng Yeu 2015-05-21 15:19:58 +08:00
parent 2b270c9353
commit a10d1b50bf

View File

@ -105,6 +105,10 @@ server {
ssl_certificate /etc/nginx/certs/{{ (printf "%s.crt" $cert) }}; ssl_certificate /etc/nginx/certs/{{ (printf "%s.crt" $cert) }};
ssl_certificate_key /etc/nginx/certs/{{ (printf "%s.key" $cert) }}; ssl_certificate_key /etc/nginx/certs/{{ (printf "%s.key" $cert) }};
{{ if (exists (printf "/etc/nginx/certs/%s.dhparams.pem" $cert)) }}
ssl_dhparam {{ printf "/etc/nginx/certs/%s.dhparams.pem" $cert }};
{{ end }}
add_header Strict-Transport-Security "max-age=31536000"; add_header Strict-Transport-Security "max-age=31536000";
{{ if (exists (printf "/etc/nginx/vhost.d/%s" $host)) }} {{ if (exists (printf "/etc/nginx/vhost.d/%s" $host)) }}