akaunting template #2
|
@ -8,10 +8,10 @@
|
||||||
{% block location %}
|
{% block location %}
|
||||||
location / {
|
location / {
|
||||||
try_files {{ item.override_try_files | default('$uri $uri/ =404') }};
|
try_files {{ item.override_try_files | default('$uri $uri/ =404') }};
|
||||||
|
}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block app_root_location %}
|
{% block app_root_location %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
}
|
|
||||||
|
|
||||||
{% block extra_locations %}
|
{% block extra_locations %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -49,6 +49,10 @@ server {
|
||||||
{% if item.headers is defined and item.headers == 'none' %}
|
{% if item.headers is defined and item.headers == 'none' %}
|
||||||
{% else %}
|
{% else %}
|
||||||
## HEADERS
|
## HEADERS
|
||||||
|
{% if item.permission_policy is defined and item.permission_policy == 'none' %}
|
||||||
|
{% else %}
|
||||||
|
add_header Permissions-Policy "geolocation=(),interest-cohort=()";
|
||||||
|
{% endif %}
|
||||||
{% if item.secure_site is defined %}
|
{% if item.secure_site is defined %}
|
||||||
add_header X-Download-Options noopen;
|
add_header X-Download-Options noopen;
|
||||||
add_header X-Permitted-Cross-Domain-Policies none;
|
add_header X-Permitted-Cross-Domain-Policies none;
|
||||||
|
@ -83,7 +87,10 @@ server {
|
||||||
add_header X-XSS-Protection "1; mode=block";
|
add_header X-XSS-Protection "1; mode=block";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.robots is defined %}
|
{% if item.robots is defined %}
|
||||||
|
{% if item.robots == 'none' %}
|
||||||
|
{% else %}
|
||||||
add_header X-Robots-Tag "{{ item.robots }}";
|
add_header X-Robots-Tag "{{ item.robots }}";
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
add_header X-Robots-Tag none;
|
add_header X-Robots-Tag none;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue