[英]example Rate limiting configuration of nginx in beanstalk
我試圖在 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;
}
}
}
但它不起作用,我做錯了什么?
我最終通過創建文件.platform/nginx/conf.d/nginx.conf
替換了完整的 nginx.conf 。 它取代了 BeanStalk 的默認 nginx 設置。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.