0.1.32-DEV-20200821-140301

--------------------------
    * FIX:
      - nginx: [emerg] unknown log format "if=$log_ip"
This commit is contained in:
Chris Hammer 2020-08-21 14:03:17 -04:00
parent b92161d2ac
commit 3c93bcd316

View File

@ -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 %}