<VirtualHost *:443>
# Basic server configuration
- ServerName <%= node[:fqdn] %>
+ ServerName <%= node.name %>
ServerAlias tile.openstreetmap.org
ServerAlias render.openstreetmap.org
ServerAdmin webmaster@openstreetmap.org
Header set Access-Control-Allow-Origin "*"
# Add diagnostics header to identify render server
- Header set X-TileRender "<%= node[:hostname] %>"
+ Header set X-TileRender "<%= node.name %>"
+
+ # Tell clients to use stale tiles if necessary
+ Header append Cache-Control "stale-while-revalidate=604800, stale-if-error=604800" "expr=%{CONTENT_TYPE} == 'image/png'"
# Remove Proxy request header to mitigate https://httpoxy.org/
RequestHeader unset Proxy early
<VirtualHost *:80>
# Basic server configuration
- ServerName <%= node[:fqdn] %>
+ ServerName <%= node.name %>
ServerAlias tile.openstreetmap.org
ServerAlias render.openstreetmap.org
ServerAdmin webmaster@openstreetmap.org
Header set Access-Control-Allow-Origin "*"
# Add diagnostics header to identify render server
- Header set X-TileRender "<%= node[:hostname] %>"
+ Header set X-TileRender "<%= node.name %>"
# Remove Proxy request header to mitigate https://httpoxy.org/
RequestHeader unset Proxy early