From 6f15d6819fb0db20b81081c00abcde93c0923177 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 13 Jul 2021 17:20:48 +0100 Subject: [PATCH] Get real tile source from Fastly-Client-IP for new tile CDN --- cookbooks/tile/templates/default/apache.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/tile/templates/default/apache.erb b/cookbooks/tile/templates/default/apache.erb index e43d62e51..a34f2b5d1 100644 --- a/cookbooks/tile/templates/default/apache.erb +++ b/cookbooks/tile/templates/default/apache.erb @@ -20,7 +20,7 @@ ScriptAlias /cgi-bin/ /srv/tile.openstreetmap.org/cgi-bin/ # Get the real remote IP for requests via a trusted proxy - RemoteIPHeader X-Forwarded-For + RemoteIPHeader Fastly-Client-IP <% @fastly.sort.each do |address| -%> RemoteIPTrustedProxy <%= address %> <% end -%> -- 2.43.2