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

Add a rule for all endpoints with an exception for few #485

Open
EmmanuelPonnudurai opened this issue Aug 5, 2024 · 1 comment
Open

Comments

@EmmanuelPonnudurai
Copy link

Hello. I need to be able to set one rule for All(*) endpoints and then a specific for one specific endpoint. I've tried as specified below but it doesn't work. Looks like the * rule overrides anything else.

"GeneralRules": [
  {
  "endpoint": "*",
  "period": "1m",
  "limit": 10
  },
  {
  "endpoint": "post:/api/foo",
  "period": "1h",
  "limit": 100
  }
]

How can I go about achieving something like this?

@lflewwelling
Copy link

Do you have EnableEndpointRateLimiting set to true?

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