Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

remove limits in nginx to prevent overlapping with filtron

parent 63d5c799
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
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 / {