This commit is contained in:
Robert Kaussow 2018-08-13 21:41:12 +02:00
parent 44c8e3ada4
commit 556cc02e2d

View File

@ -1,7 +1,7 @@
# {{ ansible_managed }} # {{ ansible_managed }}
# default header settings # default header settings
{% if nginx_tls_enabled and nginx_hsts_enabled %} {% if nginx_tls_enabled and nginx_hsts_enabled %}
add_header Strict-Transport-Security{% if nginx_hsts_options is defined %} "{{ nginx_hsts_options | join("; ") }}{% endif %}; add_header Strict-Transport-Security{% if nginx_hsts_options is defined %} "{{ nginx_hsts_options | join("; ") }}"{% endif %};
{% endif %} {% endif %}
add_header X-Frame-Options DENY; add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff; add_header X-Content-Type-Options nosniff;