From: Sam Date: Thu, 11 Sep 2014 05:48:24 +0000 (+1000) Subject: FIX: rotate nginx logs daily instead of weekly X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=55737024db043e299a0de4ba99c5b7987f250315;p=discourse_docker.git FIX: rotate nginx logs daily instead of weekly our default setting kept nginx logs for a year, huge risk on droplets with restricted space --- diff --git a/templates/web.template.yml b/templates/web.template.yml index 7918e95..5016a1a 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -169,6 +169,17 @@ run: sv 1 unicorn endscript } + + - replace: + filename: "/etc/logrotate.d/nginx" + from: "weekly" + to: "daily" + + - replace: + filename: "/etc/logrotate.d/nginx" + from: "52" + to: "14" + # move state out of the container this fancy is done to support rapid rebuilds of containers, # we store anacron and logrotate state outside the container to ensure its maintained across builds # later move this snipped into an intialization script