mirror of
https://github.com/thib8956/nginx-proxy
synced 2024-11-22 20:06:30 +00:00
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.
This commit is contained in:
parent
3ef600a3b5
commit
2528a35656
@ -42,7 +42,9 @@ map $http_upgrade $proxy_connection {
|
|||||||
server_names_hash_bucket_size 128;
|
server_names_hash_bucket_size 128;
|
||||||
|
|
||||||
# Default dhparam
|
# Default dhparam
|
||||||
|
{{ if (exists "/etc/nginx/dhparam/dhparam.pem") }}
|
||||||
ssl_dhparam /etc/nginx/dhparam/dhparam.pem;
|
ssl_dhparam /etc/nginx/dhparam/dhparam.pem;
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
# Set appropriate X-Forwarded-Ssl header
|
# Set appropriate X-Forwarded-Ssl header
|
||||||
map $scheme $proxy_x_forwarded_ssl {
|
map $scheme $proxy_x_forwarded_ssl {
|
||||||
|
Loading…
Reference in New Issue
Block a user