# Add the other caches to relieve pressure if local squid failing
# Balancer: round-robin
<% @caches.each do |cache| -%>
<% if cache[:hostname] != node[:hostname] -%>
# Add the other caches to relieve pressure if local squid failing
# Balancer: round-robin
<% @caches.each do |cache| -%>
<% if cache[:hostname] != node[:hostname] -%>
-map $cookie__osm_totp_token $cookie_qos_token_set {
- include /etc/nginx/conf.d/tile_qos_cookies.map;
-}
+# map $cookie__osm_totp_token $cookie_qos_token_set {
+# include /etc/nginx/conf.d/tile_qos_cookies.map;
+# }
ssl_certificate /etc/ssl/certs/tile.openstreetmap.org.pem;
ssl_certificate_key /etc/ssl/private/tile.openstreetmap.org.key;
ssl_certificate /etc/ssl/certs/tile.openstreetmap.org.pem;
ssl_certificate_key /etc/ssl/private/tile.openstreetmap.org.key;
proxy_cache_valid 200 1d;
proxy_cache_valid 404 15m;
# Serve stale cache on errors or if updating
proxy_cache_valid 200 1d;
proxy_cache_valid 404 15m;
# Serve stale cache on errors or if updating
# If in cache as stale, serve stale and update in background
proxy_cache_background_update on;
# If in cache as stale, serve stale and update in background
proxy_cache_background_update on;
<% if node[:ssl][:strict_transport_security] -%>
# Ensure Strict-Transport-Security header is removed from proxied server responses
proxy_hide_header Strict-Transport-Security;
<% if node[:ssl][:strict_transport_security] -%>
# Ensure Strict-Transport-Security header is removed from proxied server responses
proxy_hide_header Strict-Transport-Security;