diff --git a/templates/proxy_site.j2 b/templates/proxy_site.j2 index 9ee0994..6f17b9c 100644 --- a/templates/proxy_site.j2 +++ b/templates/proxy_site.j2 @@ -13,9 +13,9 @@ {% if proxy_site_dontlog_ips is defined %} map $remote_addr $log_ip { {% for item in proxy_site_dontlog_ips %} -"~{{ item }}" 1; + "~{{ item }}" 1; {% endfor %} -default 0; + default 0; } {% endif %} @@ -32,9 +32,9 @@ server { ssl_prefer_server_ciphers on; {% if proxy_site_dontlog_ips is defined %} - access_log {{ proxy_site_log_path }}/{{ item.key }}.log if=$log_ip; +access_log {{ proxy_site_log_path }}/{{ item.key }}.log combined if=$log_ip; {% else %} -access_log {{ proxy_site_log_path }}/{{ item.key }}.log; +access_log {{ proxy_site_log_path }}/{{ item.key }}.log combined; {% endif %} {% if proxy_sites[item.key]['max_upload'] is defined %}