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

Commit 54e2de9b authored by Nicolas Gelot's avatar Nicolas Gelot
Browse files

Increase bot limit

parent a2c898f2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ map $limit $limit_key {
    1 $http_x_forwarded_for;
}

limit_req_zone $limit_key zone=botlimit:10m rate=3r/s;
limit_req_zone $limit_key zone=botlimit:10m rate=10r/s;

server {
  listen 80;
@@ -25,11 +25,11 @@ server {
  root /var/www/spot;

  location = / {
    limit_req zone=botlimit burst=3;
    limit_req zone=botlimit burst=10;
    include /etc/nginx/proxy_spot_params;
  }
  location = /search {
    limit_req zone=botlimit burst=3;
    limit_req zone=botlimit burst=10;
    include /etc/nginx/proxy_spot_params;
  }
  location / {