Back

Locale service issue

  • 1
  • Self Hosted
  • Tools
  • Web
ponguta_
31 Oct, 2024, 21:42

Hello again, as I mentioned on a previous post I have an appwrite installation behind an Nginx Proxy Manager.

When I try to make a request to /v1/locale I get this response:

TypeScript
{"ip":"192.168.100.200","countryCode":"--","country":"Unknown","continentCode":"--","continent":"Unknown","eu":false,"currency":""}

I want to know if its possible to fix this. The Ip that I got there is the local IP of my NPM container. The installation is as follows:

  • Cloudflare
  • Proxmox -> Local Network
  • LXC -> NPM
  • LXC -> Appwrite

If anyone can help me with this it will be really appreciated.

Thanks in advance.

TL;DR
Issue: Locale service returning incorrect data due to Nginx Proxy Manager setup. Solution: The issue is likely due to the proxy not passing the client's IP. To fix this, developers should configure the Nginx Proxy Manager to pass the correct client IP address to the Appwrite server headers.
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