mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-02-02 17:58:13 -05:00
39 lines
819 B
Plaintext
39 lines
819 B
Plaintext
/data/logs/*_access.log /data/logs/*/*_access.log {
|
|
create 0644 root root
|
|
weekly
|
|
rotate 4
|
|
missingok
|
|
notifempty
|
|
compress
|
|
sharedscripts
|
|
postrotate
|
|
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
|
|
endscript
|
|
}
|
|
|
|
/data/logs/*_error.log /data/logs/*/*_error.log {
|
|
create 0644 root root
|
|
weekly
|
|
rotate 10
|
|
missingok
|
|
notifempty
|
|
compress
|
|
sharedscripts
|
|
postrotate
|
|
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
|
|
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
|
|
}
|