projects
/
discourse_docker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4eb8c3
)
Reduce log retention to 7 days out of the box
author
Sam
<sam.saffron@gmail.com>
Tue, 1 May 2018 23:34:47 +0000
(09:34 +1000)
committer
Sam
<sam.saffron@gmail.com>
Tue, 1 May 2018 23:34:47 +0000
(09:34 +1000)
Remove notifempty so logs unconditionally rotate
templates/web.template.yml
patch
|
blob
|
blame
|
history
diff --git
a/templates/web.template.yml
b/templates/web.template.yml
index 14149479982c83576e747881c66f15530e5a9e0d..ab2522f2d2e4604f596564d611dce3dab9c1261d 100644
(file)
--- a/
templates/web.template.yml
+++ b/
templates/web.template.yml
@@
-227,11
+227,10
@@
run:
contents: |
/shared/log/rails/*.log
{
- rotate
14
+ rotate
7
dateext
daily
missingok
- notifempty
delaycompress
compress
postrotate
@@
-245,10
+244,9
@@
run:
/var/log/nginx/*.log {
daily
missingok
- rotate
14
+ rotate
7
compress
delaycompress
- notifempty
create 0644 www-data www-data
sharedscripts
postrotate