From a46ca9647f58802980de405bd8b7d06a1045ea62 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 3 Mar 2026 18:57:14 +0100 Subject: [PATCH] nominatim: remove rate-limiting for blocked requests It interferes badly with fastly caching. --- cookbooks/nominatim/templates/default/nginx.erb | 3 --- 1 file changed, 3 deletions(-) diff --git a/cookbooks/nominatim/templates/default/nginx.erb b/cookbooks/nominatim/templates/default/nginx.erb index a3d790423..7acbb79c7 100644 --- a/cookbooks/nominatim/templates/default/nginx.erb +++ b/cookbooks/nominatim/templates/default/nginx.erb @@ -114,7 +114,6 @@ map $missing_email$missing_referer$http_user_agent $generic_mozilla { limit_req_zone $limit_www zone=www:50m rate=1r/s; limit_req_zone $limit_tarpit zone=tarpit:10m rate=1r/s; -limit_req_zone $binary_remote_addr zone=blocked:10m rate=2r/m; # Fastly CDN IPs <% @fastly.sort.each do |address| -%> @@ -183,7 +182,6 @@ server { error_page 403 /403.html; error_page 418 /403.html; location /403.html { - limit_req zone=blocked burst=5; add_header Vary "*" always; add_header x-nominatim-server "<%= node[:fqdn] %>" always; } @@ -191,7 +189,6 @@ server { error_page 429 /509.html; error_page 503 /509.html; location /509.html { - limit_req zone=blocked burst=5; add_header Vary "*" always; add_header x-nominatim-server "<%= node[:fqdn] %>" always; } -- 2.39.5