reproxy icon indicating copy to clipboard operation
reproxy copied to clipboard

Feature request: per route timeout and throttle

Open alehano opened this issue 3 years ago • 2 comments

It would be great if I can set (in config file) timeout and throttle for specific routes. For example I use exponential timeouts for login form to protect from brute force and I'd like to increase timeouts for this endpoint.

alehano avatar Jun 12 '22 17:06 alehano

this is not just a separate limiter for a particular endpoint, but also a custom logic, i.e. exponential timeouts

Such functionality can be currently achieved with plugins.

umputun avatar Jun 12 '22 17:06 umputun

Ok, thanks, I'll check out plugins option. To be clear, I ment I already have exponential timeouts on my side, but I can't use it on one specific endpoint because reproxy has limited timeout and return 502 code when wait too long. And for security reasons I can't increase reproxy's timeouts for all the endpoints.

UPD: Also there can be some quite long processing endpoints (like file uploading or some kind of report generating) and it will be useful to be able to set per-route timeouts out of the box.

alehano avatar Jun 12 '22 19:06 alehano