Merge pull request #2237 from SkynetLabs/logrotated
logrotate.d configuration
This commit is contained in:
commit
8381555ce7
|
@ -0,0 +1,16 @@
|
|||
/home/user/skynet-webportal/docker/data/nginx/logs/*.log {
|
||||
daily
|
||||
rotate 3650
|
||||
minsize 500M
|
||||
create 644 root root
|
||||
notifempty
|
||||
dateext
|
||||
missingok
|
||||
compress
|
||||
compressoptions --best
|
||||
delaycompress
|
||||
sharedscripts
|
||||
postrotate
|
||||
docker exec nginx nginx -s reopen
|
||||
endscript
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
/home/user/skynet-webportal/docker/data/sia/*.log
|
||||
/home/user/skynet-webportal/docker/data/sia/*/*.log {
|
||||
daily
|
||||
rotate 3650
|
||||
minsize 500M
|
||||
create 644 root root
|
||||
notifempty
|
||||
dateext
|
||||
missingok
|
||||
compress
|
||||
compressoptions --best
|
||||
delaycompress
|
||||
}
|
Reference in New Issue