geo $limit {
default 1;
1.1.1.1 0;
}
map $limit $limit_key {
0 "";
1 $binary_remote_addr;
}
limit_req_zone $limit_key zone=lim100rpm:40m rate=100r/m;
limit_req zone=lim100rpm burst=100 nodelay;
limiting requests, excess: 100.625 by zone "lim100rpm"