Files
nginx/nginx.logrotate
Илья Индиго 0acd39241a - Changed nginx.logrotate and nginx-conf.patch files.
* Removed hardcoded user and group definitions.
- Removed ending slashes wherever possible.
- Removed root privileges when running logrotate (bsc#1246090).

OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=294
2025-07-16 22:50:22 +00:00

16 lines
346 B
Plaintext

/var/log/nginx/*.log {
su USER GROUP
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
}