-
Notifications
You must be signed in to change notification settings - Fork 440
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
Mix Global and Endpoint Rules #9
Comments
Here is an example: "GeneralRules": [
{
"Endpoint": "*",
"Period": "1h",
"Limit": 1000
},
{
"Endpoint": "*:/api/values",
"Period": "1s",
"Limit": 1
}
] This sets 1000 calls per hour to all endpoints and a limit of 1 call per second for the /api/values endpoints targeting all HTTP verbs. |
Do I set |
You have to set If |
Got it. Thanks. |
Is it possible to mix a global rule with specific endpoint rules? For example I want to limit all endpoints globally to 1000 calls every 1 hour, but I also want to limit a specific endpoint with a more strict rule, like 1 per second. The documentation seems to indicate this is global or not with the
EnableEndpointRateLimiting
flag.The text was updated successfully, but these errors were encountered: