2025-07-16 22:07:01 +00:00
|
|
|
/var/log/nginx/*.log {
|
2025-07-16 22:50:22 +00:00
|
|
|
su USER GROUP
|
2025-07-16 22:07:01 +00:00
|
|
|
compress
|
|
|
|
dateext
|
|
|
|
maxage 365
|
|
|
|
rotate 99
|
|
|
|
size=+4096k
|
|
|
|
missingok
|
|
|
|
notifempty
|
|
|
|
delaycompress
|
|
|
|
lastaction
|
|
|
|
# "-s reopen" will use the pid file passed in the config file or the compiled in default path
|
|
|
|
[ -f /run/nginx.pid ] && /usr/sbin/nginx -s reopen
|
|
|
|
endscript
|
|
|
|
}
|