]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/imagery/resources/layer.rb
imagery: let templates expand [abc]. domain
[chef.git] / cookbooks / imagery / resources / layer.rb
index d66440b93d0d6423649d247b610df6e74b62562e..46b584e1db3214298474b6f7f95cacbcc6f250b1 100644 (file)
@@ -52,7 +52,7 @@ action :create do
     end
     content YAML.dump(:name => layer,
                       :title => title || layer,
-                      :url => "http://#{site}/layer/#{layer}/{z}/{x}/{y}.png",
+                      :url => "http://{s}.#{site}/layer/#{layer}/{z}/{x}/{y}.png",
                       :attribution => copyright,
                       :default => default_layer,
                       :maxZoom => max_zoom)