fix jinja formatting; add options for hsts

This commit is contained in:
Robert Kaussow 2018-08-12 01:13:06 +02:00
parent b9800a6a4c
commit aec36e8743
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,8 @@
# {{ ansible_managed }} # {{ ansible_managed }}
# default header settings # 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-Frame-Options DENY;
add_header X-Content-Type-Options nosniff; add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block"; add_header X-XSS-Protection "1; mode=block";

View File

@ -1,3 +1,4 @@
#jinja2: lstrip_blocks: True
# {{ ansible_managed }} # {{ ansible_managed }}
user {{ nginx_user }} {{ nginx_group }}; user {{ nginx_user }} {{ nginx_group }};
worker_processes {{ nginx_worker_processes }}; worker_processes {{ nginx_worker_processes }};