From bd1414026d382a930aa60f7303c3c6a8b7ec8543 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 30 Nov 2016 08:47:49 +0000 Subject: [PATCH] Only allow access to export from known caches --- cookbooks/tile/templates/default/apache.erb | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -%> + -- 2.39.5