diff --git a/templates/etc/nginx/sites-available/base.j2 b/templates/etc/nginx/sites-available/base.j2 index 50cf514..0f6d287 100644 --- a/templates/etc/nginx/sites-available/base.j2 +++ b/templates/etc/nginx/sites-available/base.j2 @@ -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 %} diff --git a/templates/etc/nginx/sites-available/core.j2 b/templates/etc/nginx/sites-available/core.j2 index 17a05d7..92ec2fe 100644 --- a/templates/etc/nginx/sites-available/core.j2 +++ b/templates/etc/nginx/sites-available/core.j2 @@ -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 %}