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

Commit 49892d47 authored by Nicolas Gelot's avatar Nicolas Gelot
Browse files

Update rate limit policy to whitelist stats.searx.xyz

parent c9f95d54
Loading
Loading
Loading
Loading
+11 −1
Original line number Original line Diff line number Diff line
limit_req_zone $http_x_forwarded_for zone=botlimit:10m rate=3r/s;
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=3r/s;


server {
server {
  listen 80;
  listen 80;