Back

Appwrite container under Nginx proxy manager and Portainer

  • 0
  • Self Hosted
usamacude
24 Jul, 2023, 14:35

hello everyone, so I am working on a new project and I am using nginx proxy manager to manage SSL certificates and to redirect requests to containers, but when making a request to get locale the response returns nginx internal ip every time so I think that's a problem first because of the request limitation and second if we want to customize responses according to user location. is there any solution for that?

TL;DR
The user is experiencing an issue where the response for getting the locale returns the Nginx internal IP instead of the expected result. They are using Nginx proxy manager to manage SSL certificates and redirect requests to containers. They are looking for a solution to resolve this issue. Solution: The user can try adding the following lines to their `docker-compose.yml` file in the Traefik service section: ``` - --entryPoints.appwrite_web.forwardedHeaders.trustedIPs=172.18.0.3 - --entryPoints.appwrite_websecure.forwardedHeaders.trustedIPs=172.18.0.
Binyamin
24 Jul, 2023, 15:15

Check this https://discord.com/channels/564160730845151244/1109402256949903411/1110007371423551558

What it means that you'll need to add these two lines to your docker-compose.yml in the Traefik service

TypeScript
 traefik:
    command:
      ...
      - --entryPoints.appwrite_web.forwardedHeaders.trustedIPs=172.18.0.3
      - --entryPoints.appwrite_websecure.forwardedHeaders.trustedIPs=172.18.0.3
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