From eead9a96bbcb356882f53a9c055103e2087a570e Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Fri, 31 May 2019 17:36:57 +0100 Subject: [PATCH] tile: Add diagnostics X-TileRender header --- cookbooks/tile/templates/default/apache.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cookbooks/tile/templates/default/apache.erb b/cookbooks/tile/templates/default/apache.erb index c76793bd9..52c4ef91b 100644 --- a/cookbooks/tile/templates/default/apache.erb +++ b/cookbooks/tile/templates/default/apache.erb @@ -37,6 +37,9 @@ # will always work and can be cached Header set Access-Control-Allow-Origin "*" + # Add diagnostics header to identify render server + Header set X-TileRender "<%= node[:hostname] %>" + # Remove Proxy request header to mitigate https://httpoxy.org/ RequestHeader unset Proxy early @@ -82,6 +85,9 @@ # will always work and can be cached Header set Access-Control-Allow-Origin "*" + # Add diagnostics header to identify render server + Header set X-TileRender "<%= node[:hostname] %>" + # Remove Proxy request header to mitigate https://httpoxy.org/ RequestHeader unset Proxy early -- 2.39.5