# Balancer: round-robin
<% @caches.each do |cache| -%>
<% if cache[:hostname] != node[:hostname] -%>
+<% if node[:tilecache][:tile_siblings].include? cache[:fqdn] -%>
<% cache.ipaddresses(:family => :inet, :role => :external).sort.each do |address| -%>
server <%= address %> backup; # Server <%= cache[:hostname] %>
<% end -%>
<% end -%>
+<% end -%>
<% end -%>
keepalive 256;
map $http_user_agent $denied_scraper {
default 0; # Not denied
+ '' 1; # No User-Agent Set
'~^Python\-urllib\/' 1; # Library Default
'~^python\-requests\/' 1; # Library Default
+ '~^node\-fetch\/' 1; # Library Default
'~^R$' 1; # Library Default
'~^Java\/' 1; # Library Default
'~^tiles$' 1; # Library Default
proxy_http_version 1.1;
proxy_set_header Connection '';
- proxy_connect_timeout 10s;
+ proxy_connect_timeout 5s;
# Preserve host header.
proxy_set_header Host $host;