From: Tom Hughes Date: Tue, 13 Jul 2021 16:20:48 +0000 (+0100) Subject: Get real tile source from Fastly-Client-IP for new tile CDN X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/6f15d6819fb0db20b81081c00abcde93c0923177 Get real tile source from Fastly-Client-IP for new tile CDN --- 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 -%>