]> git.openstreetmap.org Git - chef.git/commitdiff
tilecache: specify correct token key encoding
authorGrant Slater <git@firefishy.com>
Mon, 2 Jan 2017 21:31:33 +0000 (21:31 +0000)
committerGrant Slater <git@firefishy.com>
Mon, 2 Jan 2017 21:31:33 +0000 (21:31 +0000)
cookbooks/tilecache/templates/default/nginx_generate_tilecache_qos_map.erb

index bcedc6748d596536cbb3fa97d3e9245cc22d416f..efadcf602aab48eef94cc8dd87e1b1d08e72e09d 100755 (executable)
@@ -4,7 +4,7 @@
 set -e
 NUM_TOKENS=4 # current + 4
 VALID_TOKEN=3600 # in seconds
-QOS_TOKENS=($(/usr/bin/oathtool --totp --window=${NUM_TOKENS} --time-step-size=${VALID_TOKEN}s <%= @totp_key %>))
+QOS_TOKENS=($(/usr/bin/oathtool --totp --window=${NUM_TOKENS} --time-step-size=${VALID_TOKEN}s -b <%= @totp_key %>))
 
 # ${qos_tokens[3]/[-1] } = OSM.org exclusive / current
 # ${qos_tokens[2]/[-2] } = tile.openstreetmap.org default