X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d8fc1ec5f984b7ab6a7886e054c9dd272d3678b1..31f1fa863c0b208a44e10ef3ae1571024ef0f0ae:/cookbooks/tile/templates/default/renderd.conf.erb diff --git a/cookbooks/tile/templates/default/renderd.conf.erb b/cookbooks/tile/templates/default/renderd.conf.erb index f4abb6e3c..d29c58aa7 100644 --- a/cookbooks/tile/templates/default/renderd.conf.erb +++ b/cookbooks/tile/templates/default/renderd.conf.erb @@ -2,12 +2,12 @@ [renderd] socketname=/var/run/renderd/renderd.sock -num_threads=<%= node[:cpu][:total] - 2 %> +num_threads=<%= node.cpu_cores - 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 -%>