How to Limit upload rate with nginx?

71 views
Skip to first unread message

magee meng

unread,
Aug 26, 2015, 7:02:03 AM8/26/15
to seafile
I 've set up seafile 4.2.2, and seahub work with nginx 1.6.3.

For some reason, I need to limit user upload/download rate, the download rate limit is easy, just config the ngxin like this:

location /seafhttp {
            rewrite ^/seafhttp(.*)$ $1 break;
            proxy_pass http://127.0.0.1:8082;
            client_max_body_size 0;
            proxy_connect_timeout  3600s;
            proxy_read_timeout  3600s;
            limit_rate_after 3m;
            limit_rate 1m;
        }

The "limit_rate_after" and "limit_rate_after" is work fine. 

But I have no idea to Limit Upload Rate, Someone help me ? 
Reply all
Reply to author
Forward
0 new messages