]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/templates/default/nginx_generate_tilecache_qos_map.erb
tilecache: use stale cache over 404
[chef.git] / cookbooks / tilecache / templates / default / nginx_generate_tilecache_qos_map.erb
index a2bdbb01daa84b761fff582ae0fd3e876af300bd..869b30de63de5d7f35a0223af28321c93b80021a 100755 (executable)
@@ -33,14 +33,14 @@ fi
 
 cat <<EOF >/etc/nginx/conf.d/tile_qos_rates.map
 default 8192; # Default Rate (No QoS cookie)
-"${QOS_TOKEN_STALE}" 49152; # Stale
-"${QOS_TOKEN_DEFAULT}" 49152; # Default
-"${QOS_TOKEN_OSM_STALE}" 65536; # Exclusive Stale
-"${QOS_TOKEN_OSM}" 65536; # Exclusive
+"${QOS_TOKEN_STALE}" 24576; # Stale
+"${QOS_TOKEN_DEFAULT}" 24576; # Default
+"${QOS_TOKEN_OSM_STALE}" 32768; # Exclusive Stale
+"${QOS_TOKEN_OSM}" 32768; # Exclusive
 EOF
 
 cat <<EOF >/etc/nginx/conf.d/tile_qos_cookies.map
-default 'qos_token=${QOS_TOKEN_DEFAULT}; Max-Age=${VALID_TOKEN}; Domain=openstreetmap.org; Path=/'; # Cookie Domain per RFC6265
+default '_osm_totp_token=${QOS_TOKEN_DEFAULT}; Max-Age=${VALID_TOKEN}; Domain=openstreetmap.org; Path=/'; # Cookie Domain per RFC6265
 "${QOS_TOKEN_DEFAULT}" ''; # Do not Set-Cookie. # Default
 "${QOS_TOKEN_OSM_STALE}" ''; # Do not Set-Cookie. # Exclusive Stale
 "${QOS_TOKEN_OSM}" ''; # Do not Set-Cookie. # Exclusive