mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-22 21:08:13 -05:00
Also rotate other logs
This commit is contained in:
parent
289d179142
commit
bd3a13b2a5
@ -23,3 +23,16 @@
|
|||||||
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
|
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
|
||||||
endscript
|
endscript
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/data/logs/*.log /data/logs/*[!_error].log /data/logs/*[!_access].log {
|
||||||
|
create 0644 root root
|
||||||
|
weekly
|
||||||
|
rotate 5
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
compress
|
||||||
|
sharedscripts
|
||||||
|
postrotate
|
||||||
|
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
|
||||||
|
endscript
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user