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

Changed the SSL stapling cert extension to pem from crt. SSL stapling was not working due to the incorrect file extension.

This commit is contained in:
Sy Doveton 2017-11-19 11:35:30 +00:00
parent a6e8fae7f5
commit 6e9dc343cd
No known key found for this signature in database
GPG Key ID: 52F4444BA1089CC5

View File

@ -222,10 +222,10 @@ server {
ssl_dhparam {{ printf "/etc/nginx/certs/%s.dhparam.pem" $cert }};
{{ end }}
{{ if (exists (printf "/etc/nginx/certs/%s.chain.crt" $cert)) }}
{{ if (exists (printf "/etc/nginx/certs/%s.chain.pem" $cert)) }}
ssl_stapling on;
ssl_stapling_verify on;
ssl_trusted_certificate {{ printf "/etc/nginx/certs/%s.chain.crt" $cert }};
ssl_trusted_certificate {{ printf "/etc/nginx/certs/%s.chain.pem" $cert }};
{{ end }}
{{ if (and (ne $https_method "noredirect") (ne $hsts "off")) }}