Logging must be set to false to be disabled
parent
ac61b3df0a
commit
fe68e17663
|
@ -102,16 +102,20 @@ server {
|
||||||
{% endfor %} # <-- Custom locations
|
{% endfor %} # <-- Custom locations
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if item.use_access_log is defined and item.use_access_log %}
|
{% if item.use_access_log is defined %}
|
||||||
|
{% if item.use_access_log %}
|
||||||
access_log {{ nginx_log_dir }}/{{ __main_name }}_access.log combined;
|
access_log {{ nginx_log_dir }}/{{ __main_name }}_access.log combined;
|
||||||
{% else %}
|
{% else %}
|
||||||
access_log off;
|
access_log off;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.use_error_log is defined and item.use_error_log %}
|
{% endif %}
|
||||||
|
{% if item.use_error_log is defined %}
|
||||||
|
{% if item.use_error_log %}
|
||||||
error_log {{ nginx_log_dir }}/{{ __main_name }}_error.log {{ nginx_error_log_level }};
|
error_log {{ nginx_log_dir }}/{{ __main_name }}_error.log {{ nginx_error_log_level }};
|
||||||
{% else %}
|
{% else %}
|
||||||
error_log off;
|
error_log off;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
{% if item.redirect_from is defined and item.redirect_from is iterable %}
|
{% if item.redirect_from is defined and item.redirect_from is iterable %}
|
||||||
|
|
|
@ -122,6 +122,7 @@
|
||||||
filename : 'first-test'
|
filename : 'first-test'
|
||||||
override_try_files: '$uri $uri index.htm index.html'
|
override_try_files: '$uri $uri index.htm index.html'
|
||||||
manage_local_content: false
|
manage_local_content: false
|
||||||
|
use_error_log: false
|
||||||
more:
|
more:
|
||||||
- 'autoindex off;'
|
- 'autoindex off;'
|
||||||
- 'add_header X-ansible-default 1;'
|
- 'add_header X-ansible-default 1;'
|
||||||
|
|
Loading…
Reference in New Issue