limit_req_zone

limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;

 

server {  

# 药店项目同步药品/库存接口
location ^~ /progarm-ext-api/systemCorresponding {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

limit_req zone=one burst=5 nodelay;
limit_rate 5m;

proxy_pass http://south.api;
}

 

}

posted on 2021-08-17 09:59  四海骄阳  阅读(263)  评论(0编辑  收藏  举报

导航