our default setting kept nginx logs for a year, huge risk on droplets with restricted space
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