2 mkdir -p /srv/tilecache/data/$(date --utc "+%Y/%m")
4 curl -w "@/srv/tilecache/tilecache-curl-time.txt" -o /dev/null -s -k -4 \
6 'http://localhost:8080/19/262106/174485.png' \
7 -H 'authority: c.tile.openstreetmap.org' \
8 -H 'sec-fetch-dest: image' \
9 -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36' \
11 -H 'accept: image/webp,image/apng,image/*,*/*;q=0.8' \
12 -H 'sec-fetch-site: same-site' \
13 -H 'sec-fetch-mode: no-cors' \
14 -H 'referer: https://www.openstreetmap.org/' \
15 -H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
16 --compressed >> /srv/tilecache/data/$(date --utc "+%Y/%m")/localhost-<%= node.name.split(".").first %>-$(date --utc "+%Y-%m-%dT%H").txt
18 <% @renders.each do |render| -%>
19 <% if render.name != node.name -%>
20 <% render.ipaddresses(:family => :inet, :role => :external).sort.each do |address| -%>
21 curl -w "@/srv/tilecache/tilecache-curl-time.txt" -o /dev/null -s -k -4 \
23 'https://<%= render.name %>/19/262106/174485.png' \
24 -H 'authority: c.tile.openstreetmap.org' \
25 -H 'sec-fetch-dest: image' \
26 -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36' \
28 -H 'accept: image/webp,image/apng,image/*,*/*;q=0.8' \
29 -H 'sec-fetch-site: same-site' \
30 -H 'sec-fetch-mode: no-cors' \
31 -H 'referer: https://www.openstreetmap.org/' \
32 -H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
33 --compressed >> /srv/tilecache/data/$(date --utc "+%Y/%m")/render-<%= render.name.split(".").first %>-$(date --utc "+%Y-%m-%dT%H").txt
38 <% @caches.each do |cache| -%>
39 <% if cache.name != node.name -%>
40 <% cache.ipaddresses(:family => :inet, :role => :external).sort.each do |address| -%>
41 curl -w "@/srv/tilecache/tilecache-curl-time.txt" -o /dev/null -s -k -4 \
43 'https://<%= cache.name %>/19/262106/174485.png' \
44 -H 'authority: c.tile.openstreetmap.org' \
45 -H 'sec-fetch-dest: image' \
46 -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36' \
48 -H 'accept: image/webp,image/apng,image/*,*/*;q=0.8' \
49 -H 'sec-fetch-site: same-site' \
50 -H 'sec-fetch-mode: no-cors' \
51 -H 'referer: https://www.openstreetmap.org/' \
52 -H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
53 --compressed >> /srv/tilecache/data/$(date --utc "+%Y/%m")/tilecache-<%= cache.name.split(".").first %>-$(date --utc "+%Y-%m-%dT%H").txt