graphene-os-server-infrastr.../etc/logrotate.d/nginx
Daniel Micay 9d68a079db logrotate: use specific log file paths
This avoids ending up with the glob path in the logrotate state file
when nothing matches the glob pattern.
2025-11-03 12:54:18 -05:00

10 lines
209 B
Text

/var/log/nginx/access.log /var/log/nginx/error.log {
missingok
create 600 root root
sharedscripts
compress
maxsize 2G
postrotate
syslog-ng-ctl reopen >/dev/null
endscript
}