Small adjustments to header section in core template #4

Merged
muppeth merged 3 commits from template_fix into master 2021-04-14 17:18:48 +02:00
2 changed files with 4 additions and 1 deletions

View File

@ -8,10 +8,10 @@
{% block location %}
location / {
try_files {{ item.override_try_files | default('$uri $uri/ =404') }};
}
{% endblock %}
{% block app_root_location %}
{% endblock %}
}
{% block extra_locations %}
{% endblock %}

View File

@ -83,7 +83,10 @@ server {
add_header X-XSS-Protection "1; mode=block";
{% endif %}
{% if item.robots is defined %}
{% if item.robots == 'none' %}
{% else %}
add_header X-Robots-Tag "{{ item.robots }}";
{% endif %}
{% else %}
add_header X-Robots-Tag none;
{% endif %}