Commit 244e730f authored by Nivesh Krishna's avatar Nivesh Krishna
Browse files

remove limits in nginx to prevent overlapping with filtron

parent 63d5c799
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 / {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment