From: Tom Hughes Date: Wed, 31 Jan 2024 15:37:41 +0000 (+0000) Subject: Enable rate limiting for dev cgimap instances X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/44e0f4953cfed15830b936cbec75e92ed17a92d6 Enable rate limiting for dev cgimap instances --- diff --git a/cookbooks/dev/templates/default/cgimap.environment.erb b/cookbooks/dev/templates/default/cgimap.environment.erb index a49b8f48b..485d58e87 100644 --- a/cookbooks/dev/templates/default/cgimap.environment.erb +++ b/cookbooks/dev/templates/default/cgimap.environment.erb @@ -12,6 +12,7 @@ CGIMAP_MAP_AREA="<%= node[:web][:max_request_area] %>" CGIMAP_MAP_NODES"<%= node[:web][:max_number_of_nodes] %>" CGIMAP_MAX_WAY_NODES="<%= node[:web][:max_number_of_way_nodes] %>" CGIMAP_MAX_RELATION_MEMBERS="<%= node[:web][:max_number_of_relation_members] %>" +CGIMAP_RATELIMIT_UPLOAD="true" <% Hash(@options).each do |name, value| -%> CGIMAP_<%= name.to_s.upcase %>="<%= value %>" <% end -%> diff --git a/roles/dev.rb b/roles/dev.rb index 65e393b07..1800f3551 100644 --- a/roles/dev.rb +++ b/roles/dev.rb @@ -119,10 +119,7 @@ default_attributes( :repository => "https://github.com/tomhughes/openstreetmap-website.git", :revision => "next", :cgimap_repository => "https://github.com/zerebubuth/openstreetmap-cgimap.git", - :cgimap_revision => "master", - :cgimap_options => { - :ratelimit_upload => true - } + :cgimap_revision => "master" }, :comments => { :repository => "https://github.com/ukasiu/openstreetmap-website.git",