RejectedSoftware Forums

Sign up

limit bandwidth of static file serving

Hi all,

is there some way to limit the bandwidth of vibed? (something like mod_ratelimit for Apache2) Especially the serving of static files would be interesting..
Thanks in advance for any hints :-)

Best Regards!

Re: limit bandwidth of static file serving

On Wed, 20 Apr 2016 18:15:40 GMT, Fynn Schröder wrote:

Hi all,

is there some way to limit the bandwidth of vibed? (something like mod_ratelimit for Apache2) Especially the serving of static files would be interesting..
Thanks in advance for any hints :-)

Best Regards!

Currently rate limiting isn't implemented. I'd recommend to configure Nginx as a reverse proxy and set up the rate limit in there. See https://github.com/rejectedsoftware/vibe.d/wiki/Setting-up-Nginx-as-a-reverse-proxy for the basic setup. Of course Apache will work, too, but last time I tried it added a small but noticeable latency.