]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/renderd.conf.erb
Revert "Block requests for tiles unless they come from a CDN node"
[chef.git] / cookbooks / tile / templates / default / renderd.conf.erb
index f4abb6e3c2f82b4b5418ef326e1304e28c58ec9e..8f441db2ca216269b8a627b85a1455861e02ad39 100644 (file)
@@ -2,12 +2,12 @@
 
 [renderd]
 socketname=/var/run/renderd/renderd.sock
-num_threads=<%= node[:cpu][:total] - 2 %>
+num_threads=<%= node[:cpu][:total] - 1 %>
 tile_dir=/srv/tile.openstreetmap.org/tiles
 stats_file=/var/run/renderd/renderd.stats
 
 [mapnik]
-plugins_dir=/usr/lib/mapnik/input
+plugins_dir=/usr/lib/mapnik/<%= node[:tile][:mapnik] %>/input
 font_dir=/usr/share/fonts
 font_dir_recurse=true
 <% node[:tile][:styles].each do |name,details| -%>
@@ -18,4 +18,5 @@ XML=/srv/tile.openstreetmap.org/styles/<%= name %>/project.xml
 HOST=tile.openstreetmap.org
 MINZOOM=0
 MAXZOOM=<%= details[:max_zoom] %>
+CORS=*
 <% end -%>