From 244e730f7be604b6f8bcb21b48042e55e00af262 Mon Sep 17 00:00:00 2001 From: Nivesh Krishna Date: Tue, 26 Apr 2022 16:30:16 +0530 Subject: [PATCH] remove limits in nginx to prevent overlapping with filtron --- etc/nginx/conf.d/spot.conf | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/etc/nginx/conf.d/spot.conf b/etc/nginx/conf.d/spot.conf index 424966b89..1611f9e4e 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 / { -- GitLab