Explorar o código

add support for ssl_dhparams to prevent 'Logjam' attack

Kuo-Cheng Yeu %!s(int64=10) %!d(string=hai) anos
pai
achega
a10d1b50bf
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      nginx.tmpl

+ 4 - 0
nginx.tmpl

@@ -105,6 +105,10 @@ server {
 	ssl_certificate /etc/nginx/certs/{{ (printf "%s.crt" $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";
 
 	{{ if (exists (printf "/etc/nginx/vhost.d/%s" $host)) }}