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

What is the header name to utilise limit_by header config? #23

Open
pawandhiman10 opened this issue Mar 27, 2024 · 0 comments
Open

What is the header name to utilise limit_by header config? #23

pawandhiman10 opened this issue Mar 27, 2024 · 0 comments

Comments

@pawandhiman10
Copy link

Hello, could you help me with the header name to make use of limit_by: header.
I tried with different headers as below but seeing the same error again and again:

  • http_x_forwarded_for
  • client_ip
  • remote_ip
  • x_forwarded_for
  • x-forwarded-for
  • x-real-ip
  • remote_addr

Error:

2024/03/27 19:26:18 [error] 10567#0: *6018 [kong] handler.lua:76 [scalable-rate-limiter] No rate-limiting identifier found in request, client: 110.225.87.235, server: kong, request: "POST /api HTTP/2", host: "example.com"

Also, when I try to get the KEYS in redis cluster, it is returning empty. The above mentioned headers work with the default rate-limiting plugin. Does it need headers with a new name in this plugin?

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

1 participant