Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to limit bandwidth or rate dynamically? #483

Open
cnjinhy opened this issue Nov 30, 2020 · 1 comment
Open

How to limit bandwidth or rate dynamically? #483

cnjinhy opened this issue Nov 30, 2020 · 1 comment

Comments

@cnjinhy
Copy link

cnjinhy commented Nov 30, 2020

hi, I use the "ngx_mruby stream module";
now I want to limit the client's data transmission speed,

for example:

if Nginx::Stream::Connection.remote_ip == "127.0.0.1"
I want to limit the rate here, each IP has a different speed limit
end

Does it have this feature now?

thanks.

@matsumotory
Copy link
Owner

@chinajinhongyu Sorry for my late response... ngx_mruby doesn't have the bandwidth feature but can work with upstream directives and other directives. You may be able to use ngx_mruby in conjunction with existing bandwidth limiting modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants