]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/apache.erb
Only allow access to export from known caches
[chef.git] / cookbooks / tile / templates / default / apache.erb
index c41c923bf225a3eac464f426dc81c2f773df8212..fbc781c90bf86714a39c2593f7ab496c09e16803 100644 (file)
   AllowOverride None
   Require all granted
 </Directory>
+
+<Location /cgi-bin/export>
+<% @caches.each do |cache| -%>
+<% cache.ipaddresses(:role => :external).sort.each do |address| -%>
+  Require ip <%= address %>
+<% end -%>
+<% end -%>
+</Location>