From: Tom Hughes Date: Wed, 30 Nov 2016 08:47:49 +0000 (+0000) Subject: Only allow access to export from known caches X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/bd1414026d382a930aa60f7303c3c6a8b7ec8543 Only allow access to export from known caches --- diff --git a/cookbooks/tile/templates/default/apache.erb b/cookbooks/tile/templates/default/apache.erb index c41c923bf..fbc781c90 100644 --- a/cookbooks/tile/templates/default/apache.erb +++ b/cookbooks/tile/templates/default/apache.erb @@ -59,3 +59,11 @@ AllowOverride None Require all granted + + +<% @caches.each do |cache| -%> +<% cache.ipaddresses(:role => :external).sort.each do |address| -%> + Require ip <%= address %> +<% end -%> +<% end -%> +