diff --git a/etc/nginx/conf.d/spot.conf b/etc/nginx/conf.d/spot.conf index 424966b8983c827f63b3b98d8d6d702701bf4931..1611f9e4e523fb3c6a6aa61df2615fe24034ddf8 100644 --- a/etc/nginx/conf.d/spot.conf +++ b/etc/nginx/conf.d/spot.conf @@ -1,15 +1,3 @@ -geo $limit { - default 1; - 5.9.58.49 0; -} - -map $limit $limit_key { - 0 ""; - 1 $http_x_forwarded_for; -} - -limit_req_zone $limit_key zone=botlimit:10m rate=10r/s; - server { listen 80; server_name _; @@ -21,11 +9,9 @@ server { root /var/www/spot; location = / { - limit_req zone=botlimit burst=10; include /etc/nginx/proxy_spot_params; } location = /search { - limit_req zone=botlimit burst=10; include /etc/nginx/proxy_spot_params; } location / {