9 lines
348 B
Django/Jinja
9 lines
348 B
Django/Jinja
# {{ ansible_managed }}
|
|
# default header settings
|
|
{% if nginx_tls_enabled and nginx_hsts_enabled %}
|
|
add_header Strict-Transport-Security{% if nginx_hsts_options %} "{{ nginx_hsts_options | join("; ") }}{% endif %};
|
|
{% endif %}
|
|
add_header X-Frame-Options DENY;
|
|
add_header X-Content-Type-Options nosniff;
|
|
add_header X-XSS-Protection "1; mode=block";
|