mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-05-16 13:42:32 -04:00
add nginx logrotate configuration
This commit is contained in:
parent
b022108cc9
commit
48f1d5627e
1 changed files with 14 additions and 0 deletions
14
logrotate.d/nginx
Normal file
14
logrotate.d/nginx
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
/var/log/nginx/*log {
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
create 640 http log
|
||||||
|
sharedscripts
|
||||||
|
compress
|
||||||
|
postrotate
|
||||||
|
test ! -r /run/nginx.pid || kill -USR1 `cat /run/nginx.pid`
|
||||||
|
endscript
|
||||||
|
daily
|
||||||
|
rotate 10
|
||||||
|
maxage 10
|
||||||
|
delaycompress
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue