【发布时间】:2022-01-29 23:26:51
【问题描述】:
我试图在 nginx conf 中设置速率限制,我在 ./platform/nginx/conf.d/custom.conf 文件中做了以下操作
http {
limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
server {
location / {
limit_req zone=one;
limit_req_dry_run on;
}
}
}
但它不起作用,我做错了什么?
【问题讨论】:
标签: nginx amazon-elastic-beanstalk rate-limiting