]> git.openstreetmap.org Git - chef.git/commitdiff
Get real tile source from Fastly-Client-IP for new tile CDN
authorTom Hughes <tom@compton.nu>
Tue, 13 Jul 2021 16:20:48 +0000 (17:20 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 13 Jul 2021 16:20:48 +0000 (17:20 +0100)
cookbooks/tile/templates/default/apache.erb

index e43d62e5130ab81185554b9791f6801168605ec2..a34f2b5d14357ff241718ac439808f9a2098aa08 100644 (file)
@@ -20,7 +20,7 @@
   ScriptAlias /cgi-bin/ /srv/tile.openstreetmap.org/cgi-bin/
 
   # Get the real remote IP for requests via a trusted proxy
   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 -%>
 <% @fastly.sort.each do |address| -%>
   RemoteIPTrustedProxy <%= address %>
 <% end -%>