]> git.openstreetmap.org Git - chef.git/commitdiff
Increase API rate limit
authorTom Hughes <tom@compton.nu>
Fri, 4 Sep 2015 14:14:19 +0000 (15:14 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 4 Sep 2015 14:14:19 +0000 (15:14 +0100)
cookbooks/web/recipes/cgimap.rb

index e765cc865bccb19736b469e9c2bf49973f8bd6c2..fa4827aae80ae358b8d51023f0a6c0243e3b68df 100644 (file)
@@ -93,6 +93,7 @@ cgimap_init = edit_file "#{cgimap_directory}/scripts/cgimap.init" do |line|
   line.gsub!(/^CGIMAP_PIDFILE=.*;/, "CGIMAP_PIDFILE=#{pid_directory}/cgimap.pid;")
   line.gsub!(/^CGIMAP_LOGFILE=.*;/, "CGIMAP_LOGFILE=#{log_directory}/cgimap.log;")
   line.gsub!(/^CGIMAP_MEMCACHE=.*;/, "CGIMAP_MEMCACHE=rails1,rails2,rails3;")
+  line.gsub!(/^CGIMAP_RATELIMIT=.*;/, "CGIMAP_RATELIMIT=204800;")
 
   line.gsub!(%r{/home/rails/bin/map}, "#{cgimap_directory}/.libs/lt-map")