geo $whitelist {
default 0;
64.68.80.0/21 1;
}
map $whitelist $limit {
0 $binary_remote_addr;
1 "";
}
limit_req_zone $limit zone=vse:10m rate=15r/m;
map "$whitelist:$server_protocol" $limit {
"0:HTTP/1.0" "$binary_remote_addr";
"1:HTTP/1.0" "";
"0:HTTP/2.0" "$binary_remote_addr-№2";
}