2 mkdir -p /srv/tilecache/data/$(date --utc "+%Y/%m")
4 <% @renders.each do |render| -%>
5 <% if render[:hostname] != node[:hostname] -%>
6 <% render.ipaddresses(:family => :inet, :role => :external).sort.each do |address| -%>
7 curl -w "@/srv/tilecache/tilecache-curl-time.txt" -o /dev/null -s -k -4 \
9 'https://<%= render[:hostname] %>.openstreetmap.org/19/262106/174485.png' \
10 -H 'authority: c.tile.openstreetmap.org' \
11 -H 'sec-fetch-dest: image' \
12 -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36' \
14 -H 'accept: image/webp,image/apng,image/*,*/*;q=0.8' \
15 -H 'sec-fetch-site: same-site' \
16 -H 'sec-fetch-mode: no-cors' \
17 -H 'referer: https://www.openstreetmap.org/' \
18 -H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
19 --compressed >> /srv/tilecache/data/$(date --utc "+%Y/%m")/render-<%= render[:hostname] %>-$(date --utc --iso-8601).txt
24 <% @caches.each do |cache| -%>
25 <% if cache[:hostname] != node[:hostname] -%>
26 <% cache.ipaddresses(:family => :inet, :role => :external).sort.each do |address| -%>
27 curl -w "@/srv/tilecache/tilecache-curl-time.txt" -o /dev/null -s -k -4 \
29 'https://<%= cache[:hostname] %>.openstreetmap.org/19/262106/174485.png' \
30 -H 'authority: c.tile.openstreetmap.org' \
31 -H 'sec-fetch-dest: image' \
32 -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36' \
34 -H 'accept: image/webp,image/apng,image/*,*/*;q=0.8' \
35 -H 'sec-fetch-site: same-site' \
36 -H 'sec-fetch-mode: no-cors' \
37 -H 'referer: https://www.openstreetmap.org/' \
38 -H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
39 --compressed >> /srv/tilecache/data/$(date --utc "+%Y/%m")/tilecache-<%= cache[:hostname] %>-$(date --utc --iso-8601).txt