X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/cc7dc2d10bf3457a9d6a28931bf96539bfac6491..6769f06b626d566508eaa96a9892d05aeb331f24:/cookbooks/nominatim/templates/default/nginx.erb?ds=inline diff --git a/cookbooks/nominatim/templates/default/nginx.erb b/cookbooks/nominatim/templates/default/nginx.erb index a44e9382c..dc8b54a9a 100644 --- a/cookbooks/nominatim/templates/default/nginx.erb +++ b/cookbooks/nominatim/templates/default/nginx.erb @@ -24,6 +24,7 @@ map $uri/$format $forward_to_ui { ~/other$ 0; ~/reverse.*/default 0; ~/lookup.*/default 0; + ~/status.*/default 0; } map $query_string $email_id { @@ -168,6 +169,10 @@ server { index search.html; } + location /qa-data/ { + add_header Access-Control-Allow-Origin "*"; + } + location @php { if ($blocked_user_agent ~ ^2$) { return 403; } @@ -178,7 +183,7 @@ server { include <%= @confdir %>/nginx_blocked_generic.conf; limit_req zone=www burst=10; - limit_req zone=tarpit burst=2; + limit_req zone=tarpit burst=5; limit_req zone=reverse burst=5; limit_req_status 429; fastcgi_pass nominatim_service;