Authored by chunhua.zhang

修改UFO的限流

... ... @@ -30,7 +30,19 @@ http {
# limit req configuration limit for 20r/s for every ip
limit_req_zone $binary_remote_addr zone=limit_ufo:30m rate=20r/s;
geo $limited {
default 1;
10.66.0.0/16 0;
10.67.0.0/16 0;
192.168.0.0/16 0;
172.31.0.0/16 0;
}
map $limited $limit {
1 $binary_remote_addr;
0 "";
}
limit_req_zone $limit zone=limit_ufo:30m rate=20r/s;
sendfile on;
... ...