]> git.openstreetmap.org Git - chef.git/commitdiff
Add some comments to tile config
authorTom Hughes <tom@compton.nu>
Sat, 10 Dec 2022 11:39:51 +0000 (11:39 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 10 Dec 2022 11:47:51 +0000 (11:47 +0000)
cookbooks/tile/templates/default/apache.erb

index ae0020cb9bcab127b9b01a6bd716480ee150d210..c24e06e821349eb182d9c8e94693aaa099a960a1 100644 (file)
   # Restrict tile access to CDN nodes and admins
   <LocationMatch ^/default/\d+/\d+/\d+\.png$>
     Require expr "%{CONN_REMOTE_ADDR} != %{REMOTE_ADDR}"
+    # Fastly POPs
 <% @fastly.sort.each do |address| -%>
     Require ip <%= address %>
 <% end -%>
+    # StatusCake monitoring
 <% @statuscake.sort.reject { |address| address.empty? }.each do |address| -%>
     Require ip <%= address %>
 <% end -%>
+    # Administrators
 <% @admins.sort.each do |address| -%>
     Require ip <%= address %>
 <% end -%>