upstream tile_cache_backend {
server 127.0.0.1;
- keepalive 32;
+ keepalive 256;
}
# Rates table based on current cookie value
proxy_http_version 1.1;
proxy_set_header Connection '';
- proxy_connect_timeout 5s;
+ proxy_connect_timeout 10s;
+ # Preserve host header.
+ proxy_set_header Host $host;
# Do not pass cookies to backends.
proxy_set_header Cookie '';
# Do not pass Accept-Encoding to backends.
# Allow Higher Traffic Rate from Approved User-Agents which do not support cookies (uses nginx Map)
if ($approved_scraper) {
- set $limit_rate 32768;
+ set $limit_rate 65536;
}
# Strip any ?query parameters from urls