Skip to content

Commit

Permalink
feat: keep images log for longer
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgarel authored and root committed Jan 13, 2025
1 parent 73d1514 commit ddabb60
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions confs/ks1/logrotate.d/nginx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/var/log/nginx/*.log {
daily
missingok
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 ddabb60

Please sign in to comment.