From 2528a35656c69145a0cfff19768b44b1e0a473b1 Mon Sep 17 00:00:00 2001 From: Nicolas Duchon Date: Wed, 25 Oct 2017 12:32:09 +0200 Subject: [PATCH] Don't presume the existence of default dhparam The default dhparam at /etc/nginx/dhparam/dhparam.pem won't be auto generated with the separate containers setup. --- nginx.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nginx.tmpl b/nginx.tmpl index 65faa0b..28f745a 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -42,7 +42,9 @@ map $http_upgrade $proxy_connection { server_names_hash_bucket_size 128; # Default dhparam +{{ if (exists "/etc/nginx/dhparam/dhparam.pem") }} ssl_dhparam /etc/nginx/dhparam/dhparam.pem; +{{ end }} # Set appropriate X-Forwarded-Ssl header map $scheme $proxy_x_forwarded_ssl { @@ -319,4 +321,4 @@ server { {{ end }} {{ end }} -{{ end }} \ No newline at end of file +{{ end }}