Browse Source

boolean filter instead of True comparison

import suggestion from @edoput:
"al massimo posso capire un filtro come | bool"
FB PM 17/11/2016 00:22
nginx-letsencrypt
Lorenzo 8 years ago
parent
commit
1b76775fc8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      roles/nginx/templates/site.j2

+ 1
- 1
roles/nginx/templates/site.j2 View File

@ -4,7 +4,7 @@ server {
{% for key,value in item.server|dictsort if key != 'file_name' %}
{{ key }} {{ value }};
{% if nginx_separate_logs_per_site == True %}
{% if nginx_separate_logs_per_site|bool %}
access_log {{ nginx_log_dir }}/{{ item.server.server_name }}-{{ nginx_access_log_name }};
error_log {{ nginx_log_dir }}/{{ item.server.server_name }}-{{ nginx_error_log_name }};
{% endif %}


Loading…
Cancel
Save