Back

[SOLVED] Unable to get client IP through Nginx resulting in Rate limitation

  • 0
  • Self Hosted
Milukun
17 Jun, 2023, 12:28

I reverse proxy appwrite service to my domain through the host nginx, I found that all client requests are local ip 172.18.0.1 , I didn't care until the service was officially enabled.

I found out that users can't register anymore because it seems that the number of user registrations is limited based on the IP to limit the frequency. Currently I have turned off the frequency limiting feature for now, but I still want to know how can I get the real IP through nginx? I've followed some tutorials to set it up, but it still doesn't work. HELP~

Here is my Nginx configuration file

TL;DR
The issue was resolved by making changes to the Nginx configuration file. The user was unable to get the client's IP through Nginx, which resulted in rate limitations. They came across a typo in the title and provided a link to a helpful tutorial on how to run Appwrite behind Nginx. The user had reverse proxied Appwrite to their domain through Nginx and noticed that all client requests were showing the local IP 172.18.0.1. This became a problem when users couldn't register anymore due to IP-based rate limitations. The user temporarily disabled the frequency limiting feature but still wanted to know
Milukun
17 Jun, 2023, 13:14
  • --entrypoints.appwrite_web.forwardedHeaders.insecure - --entrypoints.appwrite_websecure.forwardedHeaders.insecure

this can be help https://medium.com/@stnguyen90/how-to-run-appwrite-behind-nginx-19348ed34243

Milukun
17 Jun, 2023, 13:14

[SELOVED]Unable to get client IP through Nginx resulting in Rate limitation

Gaddy
17 Jun, 2023, 13:18

@Milukun you got an typo in solved (no offense)

Drake
18 Jun, 2023, 01:06

[SOLVED] Unable to get client IP through Nginx resulting in Rate limitation

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more