Skip to content

Commit

Permalink
chore: keep nginx logs for more time (#9639)
Browse files Browse the repository at this point in the history
We need them for scanbot (computing popularity)
  • Loading branch information
alexgarel authored Jan 9, 2024
1 parent 53c218f commit 7ff1d8a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions conf/logrotate/nginx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/var/log/nginx/*.log {
daily
missingok
rotate -1
# remove after two years
maxage 730
rotate 14
compress
delaycompress
notifempty
create 0640 www-data adm
sharedscripts
prerotate
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
run-parts /etc/logrotate.d/httpd-prerotate; \
fi \
endscript
postrotate
invoke-rc.d nginx rotate >/dev/null 2>&1
endscript
}

0 comments on commit 7ff1d8a

Please sign in to comment.