# EDON Argos: rotation of the WAF's queue log (installed as
# /etc/logrotate.d/argos-waf by the argos package, run by logrotate.timer):
# the requests the glue's queue refused to a client that kept AppSec busy
# (fair) or let through uninspected (overload), one line each, which CrowdSec
# and the Status page read (info/WAF.md §5). nginx writes it: it is told to
# open its logs again after the rename, as Debian's own nginx snippet does, and
# its workers do so as www-data — hence the file's owner and its 0755
# directory. CrowdSec follows the file by name. The newest rotated file stays
# uncompressed, so Status's last hour can read on into it. A flood writes a
# line a request, as nginx's own access log does: daily, a week kept.
/var/log/argos-waf/skip.log {
	daily
	rotate 7
	missingok
	notifempty
	create 0640 www-data adm
	compress
	delaycompress
	postrotate
		invoke-rc.d nginx rotate >/dev/null 2>&1 || true
	endscript
}
