]> git.openstreetmap.org Git - chef.git/commitdiff
Limit TOTP controls to the query-features endpoint
authorTom Hughes <tom@compton.nu>
Thu, 13 Oct 2022 21:51:34 +0000 (22:51 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 13 Oct 2022 21:51:34 +0000 (22:51 +0100)
cookbooks/overpass/templates/default/apache.erb

index 0aefcf85a2c8f931a26be4ca9192ac3953657c96..8ccd28a9d3eae34cfe2e2eabcca8614a03073144 100644 (file)
@@ -32,7 +32,7 @@
         RewriteEngine on
         RewriteMap totp prg:/srv/query.openstreetmap.org/apache/totp-filter
         RewriteCond ${totp:%{HTTP_COOKIE}} =0
-        RewriteRule ^.*$ - [F,L]
+        RewriteRule ^/query-features - [F,L]
 
 <% if node[:overpass][:restricted_api] -%>
         ScriptAlias /query-features <%= @script_directory %>/interpreter