You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.
Is it possible to have both? My idea is to rate limit all routes to 10 requests per second, except the /register and /login routes where I want a rate limit of 5 requests per minute?
The text was updated successfully, but these errors were encountered:
With this configuration the /register and /login routes get rate limited after 20 requests (half of what the 'maxRequests' value is in configure.swift . If I change the 'maxRequests' to 30 in configure.swift, then the /register and /login routes are rate limited after 15 requests.
Is this a bug or a feature?
Can I somehow enforce the 'maxRequests' value in the api.group()?
Can I use more than one GatekeeperMiddleware(config:) instance for the different route groups?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is it possible to have both? My idea is to rate limit all routes to 10 requests per second, except the /register and /login routes where I want a rate limit of 5 requests per minute?
The text was updated successfully, but these errors were encountered: