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

Feature request: per route timeout and throttle #140

Open
alehano opened this issue Jun 12, 2022 · 2 comments
Open

Feature request: per route timeout and throttle #140

alehano opened this issue Jun 12, 2022 · 2 comments

Comments

@alehano
Copy link

alehano commented Jun 12, 2022

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.

@umputun
Copy link
Owner

umputun commented Jun 12, 2022

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.

@alehano
Copy link
Author

alehano commented Jun 12, 2022

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.

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