mirror of
https://github.com/thib8956/nginx-proxy
synced 2024-11-22 11:56:31 +00:00
fix indention, and file nameing
This commit is contained in:
parent
da0191a778
commit
d74a4146c8
@ -86,8 +86,8 @@ hosts in use. The certificate and keys should be named after the virtual host w
|
|||||||
#### Diffie-Hellman Groups
|
#### Diffie-Hellman Groups
|
||||||
|
|
||||||
If you have Diffie-Hellman groups enabled, the files should be named after the virtual host with a
|
If you have Diffie-Hellman groups enabled, the files should be named after the virtual host with a
|
||||||
`dhparams` suffix and `.pem` extension. For example, a container with `VIRTUAL_HOST=foo.bar.com`
|
`dhparam` suffix and `.pem` extension. For example, a container with `VIRTUAL_HOST=foo.bar.com`
|
||||||
should have a `foo.bar.com.dhparams.pem` file in the certs directory.
|
should have a `foo.bar.com.dhparam.pem` file in the certs directory.
|
||||||
|
|
||||||
#### Wildcard Certificates
|
#### Wildcard Certificates
|
||||||
|
|
||||||
|
@ -105,9 +105,9 @@ 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)) }}
|
{{ if (exists (printf "/etc/nginx/certs/%s.dhparam.pem" $cert)) }}
|
||||||
ssl_dhparam {{ printf "/etc/nginx/certs/%s.dhparams.pem" $cert }};
|
ssl_dhparam {{ printf "/etc/nginx/certs/%s.dhparam.pem" $cert }};
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
add_header Strict-Transport-Security "max-age=31536000";
|
add_header Strict-Transport-Security "max-age=31536000";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user