]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/renderd.conf.erb
Get rid of the last traces of old style apache auth directives
[chef.git] / cookbooks / tile / templates / default / renderd.conf.erb
index ebd8c14eb1ef756647dbbccd6bb97fd146e6bdd0..4ce29d976ca88288f1f1ca6521cced0d9ed0ae83 100644 (file)
@@ -7,7 +7,11 @@ tile_dir=/srv/tile.openstreetmap.org/tiles
 stats_file=/var/run/renderd/renderd.stats
 
 [mapnik]
+<% if node[:lsb][:release].to_f >= 14.04 -%>
+plugins_dir=/usr/lib/mapnik/2.2/input
+<% else -%>        
 plugins_dir=/usr/lib/mapnik/input
+<% end -%>        
 font_dir=/usr/share/fonts
 font_dir_recurse=true
 <% node[:tile][:styles].each do |name,details| -%>
@@ -16,4 +20,7 @@ font_dir_recurse=true
 URI=/<%= name %>/
 XML=/srv/tile.openstreetmap.org/styles/<%= name %>/project.xml
 HOST=tile.openstreetmap.org
+MINZOOM=0
+MAXZOOM=<%= details[:max_zoom] %>
+CORS=*
 <% end -%>