From a9c57de46e81917bc80bc0e352696e74599d2f05 Mon Sep 17 00:00:00 2001 From: clime Date: Mon, 26 Feb 2018 19:59:39 +0100 Subject: [PATCH] copr-backend: ignore 209.132.184.53 when counting rpm downloads * that ip belongs to copr-builder-gateway.fedorainfracloud.org * also ignore other ips on the same /24 subnet --- roles/copr/backend/templates/logrotate/lighttpd.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/copr/backend/templates/logrotate/lighttpd.j2 b/roles/copr/backend/templates/logrotate/lighttpd.j2 index 2ffe5272b4..98f8e29851 100644 --- a/roles/copr/backend/templates/logrotate/lighttpd.j2 +++ b/roles/copr/backend/templates/logrotate/lighttpd.j2 @@ -6,9 +6,9 @@ compress prerotate {% if devel %} - /usr/bin/copr_log_hitcounter.py /var/log/lighttpd/access.log --ignore-subnet 172.25.144.0/20 &>>/var/log/copr-backend/hitcounter-logrotate.log || : + /usr/bin/copr_log_hitcounter.py /var/log/lighttpd/access.log --ignore-subnets 172.25.144.0/20 209.132.184.33/24 &>>/var/log/copr-backend/hitcounter-logrotate.log || : {% else %} - /usr/bin/copr_log_hitcounter.py /var/log/lighttpd/access.log --ignore-subnet 172.25.80.0/20 &>>/var/log/copr-backend/hitcounter-logrotate.log || : + /usr/bin/copr_log_hitcounter.py /var/log/lighttpd/access.log --ignore-subnets 172.25.80.0/20 209.132.184.33/24 &>>/var/log/copr-backend/hitcounter-logrotate.log || : {% endif %} endscript postrotate