[Question]: Running Librechat bebind GCP Loadbalancer - how does ip based ratelimit work? #3902
-
What is your question?We are running Librechat behind GCP loadbalancer. I have a few questions:
More DetailsThe reason I am asking is because I spotted some log entries like this: ERROR 2024-09-01T00:00:19.635833161Z [resource.labels.containerName: librechat] [Login] [Login failed] [Username: [email protected]] [Request-IP: 35.x.x.x]. The IP is loadbalancer IP. I don't see any other client IP requests. Maybe there is a flag to show real client IP? What is the main subject of your question?No response ScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
There is not. The IP in the log is simply what is available to the API via express native property of the If you are using a load balancer in front of it, you should maybe disable the API's IP rate limits and simply use the Notes on configuring the API's limiters: https://www.librechat.ai/docs/configuration/mod_system |
Beta Was this translation helpful? Give feedback.
-
@@danny-avila It seems no configuration to disable login attempts per IP. Our users are getting |
Beta Was this translation helpful? Give feedback.
There is not. The IP in the log is simply what is available to the API via express native property of the
req
object, i.e.req.ip
.If you are using a load balancer in front of it, you should maybe disable the API's IP rate limits and simply use the
user
ones instead.Notes on configuring the API's limiters: https://www.librechat.ai/docs/configuration/mod_system