nginx: Set hsts headers in proxy level and not in backend

This commit is contained in:
Timo Makinen 2021-03-20 14:29:28 +00:00
parent ad49c7f6b9
commit 730cf1ab09
2 changed files with 2 additions and 2 deletions

View file

@ -10,6 +10,8 @@ server {
listen [::]:443 ssl http2;
server_name {{ site }};
add_header Strict-Transport-Security "max-age=63072000" always;
{% if ssl_config is defined %}
{% if ssl_config == "old" %}
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;