]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dev/templates/default/cgimap.environment.erb
Set memory limits for user slices on the dev server
[chef.git] / cookbooks / dev / templates / default / cgimap.environment.erb
index 7fb1efde2e50352051558bad98fd959d6fffc452..1e592cc0cec13612a6d710948f0f41652581af09 100644 (file)
@@ -4,7 +4,14 @@ CGIMAP_PORT="<%= @cgimap_port %>"
 CGIMAP_DBPORT="<%= @database_port %>"
 CGIMAP_DBNAME="<%= @database_name %>"
 CGIMAP_USERNAME="apis"
-CGIMAP_LOGFILE="<%= @rails_directory %>/log/cgimap.log"
+CGIMAP_LOGFILE="<%= @log_directory %>/cgimap.log"
 CGIMAP_MEMCACHE="127.0.0.1"
 CGIMAP_RATELIMIT="204800"
 CGIMAP_MAXDEBT="250"
+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] %>"
+<% Hash(@options).each do |name, value| -%>
+CGIMAP_<%= name.to_s.upcase %>="<%= value %>"
+<% end -%>