From 0e9bffee39bbb52f6c494f5688d3d13e09fc18b4 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Fri, 6 Mar 2026 09:50:19 +0100 Subject: [PATCH] nominatim: remove all rate-limiting by nginx --- .../nominatim/templates/default/nginx.erb | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/cookbooks/nominatim/templates/default/nginx.erb b/cookbooks/nominatim/templates/default/nginx.erb index 7acbb79c7..7fdd328a1 100644 --- a/cookbooks/nominatim/templates/default/nginx.erb +++ b/cookbooks/nominatim/templates/default/nginx.erb @@ -95,26 +95,6 @@ map $missing_referer$missing_ua$email_id $blocked_email { include <%= @confdir %>/nginx_blocked_email.conf; } -map $whitelisted $limit_www { - 1 ""; - 0 $binary_remote_addr; -} - -map $blocked_user_agent $limit_tarpit { - 0 ""; - 1 $binary_remote_addr; - 2 $binary_remote_addr; -} - -map $missing_email$missing_referer$http_user_agent $generic_mozilla { - default 0; - ~^11Mozilla/4.0 1; - ~^11Mozilla/5.0 2; -} - -limit_req_zone $limit_www zone=www:50m rate=1r/s; -limit_req_zone $limit_tarpit zone=tarpit:10m rate=1r/s; - # Fastly CDN IPs <% @fastly.sort.each do |address| -%> set_real_ip_from <%= address %>; @@ -223,10 +203,6 @@ server { { return 418; } include <%= @confdir %>/nginx_blocked_generic.conf; - limit_req zone=www burst=10; - limit_req zone=tarpit burst=5; - limit_req_status 429; - if ($request_method = 'OPTIONS') { add_header 'Content-Type' 'text/plain; charset=UTF-8'; add_header 'Content-Length' 0; -- 2.39.5