]> git.openstreetmap.org Git - chef.git/blob - cookbooks/tile/templates/default/renderd.conf.erb
Avoid cloning directory resources in the tile recipe
[chef.git] / cookbooks / tile / templates / default / renderd.conf.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 [renderd]
4 socketname=/var/run/renderd/renderd.sock
5 num_threads=<%= node[:cpu][:total] - 2 %>
6 tile_dir=/srv/tile.openstreetmap.org/tiles
7 stats_file=/var/run/renderd/renderd.stats
8
9 [mapnik]
10 <% if node[:lsb][:release].to_f >= 16.04 -%>
11 plugins_dir=/usr/lib/mapnik/3.0/input
12 <% else -%>
13 plugins_dir=/usr/lib/mapnik/2.2/input
14 <% end -%>
15 font_dir=/usr/share/fonts
16 font_dir_recurse=true
17 <% node[:tile][:styles].each do |name,details| -%>
18
19 [<%= name %>]
20 URI=/<%= name %>/
21 XML=/srv/tile.openstreetmap.org/styles/<%= name %>/project.xml
22 HOST=tile.openstreetmap.org
23 MINZOOM=0
24 MAXZOOM=<%= details[:max_zoom] %>
25 CORS=*
26 <% end -%>