O
O
OKNOZA2014-02-03 14:37:57
PHP
OKNOZA, 2014-02-03 14:37:57

How to adjust file upload speed in nginx?

How can I make sure that, according to some criteria, the upload speed does not rise more than 64kb for a certain usera by IP.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vit, 2014-02-03
@fornit1917

www.nginxtips.com/how-to-limit-nginx-download-speed
As for the criteria, you can use the if statement in nginx configs. There it is possible to interpose check of an aypishnik.

S
Sergey, 2014-02-03
@bondbig

There is a limit_rate directive, but it only works for one connection, not for ip. If the user makes two, then the limit will double and so on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question