nginx: Set hsts headers in proxy level and not in backend
This commit is contained in:
parent
ad49c7f6b9
commit
730cf1ab09
2 changed files with 2 additions and 2 deletions
|
@ -26,8 +26,6 @@ http {
|
|||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
||||
ssl_prefer_server_ciphers off;
|
||||
|
||||
add_header Strict-Transport-Security "max-age=63072000" always;
|
||||
|
||||
proxy_ssl_certificate {{ tls_certs }}/{{ inventory_hostname }}.crt;
|
||||
proxy_ssl_certificate_key {{ tls_private }}/{{ inventory_hostname }}.key;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue