]> git.openstreetmap.org Git - chef.git/commitdiff
Only allow HTTP GET tile requests (NOT POST)
authorGrant Slater <git@firefishy.com>
Sat, 7 Mar 2015 16:48:11 +0000 (16:48 +0000)
committerGrant Slater <git@firefishy.com>
Sat, 7 Mar 2015 16:48:22 +0000 (16:48 +0000)
cookbooks/tilecache/templates/default/squid.conf.erb

index ca658c296db59f038c57eea1163c595fb32c502a..1c47a7a836071b538ee6e49d87e3010ec05f51d0 100644 (file)
@@ -45,7 +45,9 @@ acl blacklist_path urlpath_regex ^/zecmd/
 http_access allow osmtile_sites whitelist_path
 http_access deny blacklist_path
 
-http_access allow osmtile_sites
+acl requestMethodGet method GET
+
+http_access allow osmtile_sites requestMethodGet
 
 acl osmtile_nocache_url urlpath_regex \.png/(status|dirty)$
 cache deny osmtile_sites osmtile_nocache_url