Back

Appwrite behind NPM

  • 0
  • Self Hosted
thet3o
4 Nov, 2023, 10:30

I setup all but I continue get this error "502 bad gateway openresty" or "ERR_SSL_UNRECOGNIZED_NAME_ALERT", in the docker compos in the traefik section i setup this (the ip correspond to internal docker npm ip)

TypeScript
- --entrypoints.appwrite_web.forwardedHeaders.trustedIPs=172.23.0.2
- --entrypoints.appwrite_websecure.forwardedHeaders.trustedIPs=172.23.0.2
TL;DR
The user is experiencing issues with the certificate in NPM and is getting an ERR_SSL_UNRECOGNIZED_NAME_ALERT. They are trying to run Appwrite behind Nginx and have provided a link to a Medium article for further assistance. To resolve the issue, the user should ensure that Appwrite's traefik and NPM are on the same docker network and use the destination https://appwrite-traefik on the standard 443 port. The user also shared their docker composition, including the traefik section where they have set the trustedIPs to the internal docker npm IP. However, the user is still getting
Drake
4 Nov, 2023, 15:21

You should be putting Appwrite's traefik and NPM on the same docker network. Then, the destination should be https://appwrite-traefik (on the standard 443 port).

For additional help, see https://medium.com/@stnguyen90/how-to-run-appwrite-behind-nginx-19348ed34243

thet3o
4 Nov, 2023, 18:31

ok, but it's in the same network

thet3o
4 Nov, 2023, 18:33

And I can't see this https://medium.com/@stnguyen90/how-to-run-appwrite-behind-nginx-19348ed34243 because is only for members, sorry

Drake
5 Nov, 2023, 05:28

Then you should be able to use 443 for the port and the name of the container for the host

thet3o
5 Nov, 2023, 07:06

thank you, I'll try and give updates👍

thet3o
5 Nov, 2023, 07:47

Now I'm getting this ERR_SSL_UNRECOGNIZED_NAME_ALERT

Drake
5 Nov, 2023, 17:17

Weird...something is wrong with your cert in NPM

Drake
5 Nov, 2023, 17:17

Check the certificate

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