disable_access_log is in item, not global

This commit is contained in:
Dryusdan 2024-03-31 12:45:38 +02:00
parent c6ca7674d8
commit 6ea60d8375
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ server {
root {{ item.root|default('/var/www/html') }};
index {{ item.index|default('index.html index.htm')}};
{% if disable_access_log is defined %}
{% if item.disable_access_log is defined %}
access_log off;
error_log off;
{% else %}

View File

@ -7,7 +7,7 @@ server {
root {{ item.root|default('/var/www/html') }};
index {{ item.index|default('index.html index.htm')}};
{% if disable_access_log is defined %}
{% if item.disable_access_log is defined %}
access_log off;
error_log off;
{% else %}

View File

@ -4,7 +4,7 @@
server {
{% include 'partials/header.j2' %}
{% if disable_access_log is defined %}
{% if item.disable_access_log is defined %}
access_log off;
error_log off;
{% else %}