1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/nginx/files/logrotate.conf
Florian Pritz f511f29e8d
nginx: Add logrotate config
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-05 14:37:32 +01:00

14 lines
203 B
Plaintext

/var/log/nginx/*/*log {
missingok
notifempty
create 640 http log
sharedscripts
compress
size 100M
rotate 20
postrotate
test ! -r /run/nginx.pid || kill -USR1 `cat /run/nginx.pid`
endscript
}