Is there any specific reason why limit_rate does not apply to proxy_pass? Having the following configuration block in nginx, I can still download the proxied file at ~4MB/s:
location ~ ^/proxy? {
resolver 8.8.8.8;
set $limit_rate 50k;
limit_rate 50k;
proxy_limit_rate 50k;
proxy_buffering off;
proxy_buffer_size 15m;
proxy_pass_request_body off;
proxy_read_timeout 20s;
proxy_pass $arg_fwd;
}
System is Debian 8 with Nginx 1.10.1. No extra modules are installed aside from the default packaged ones in apt.
proxy_buffering off; and rate limiting are mutually exclusive. You should enable buffering to use the limit rate feature.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With