Hello, anyone have an best practice how to deploy Appwrite behind NAT
This my infrastructure flow
vm (local ip address) -> nginx reverse proxy (setup domain) -> cloudflare (set A record to public ip address)
The question how can I done with function domain?
Summary
Issue: The user is trying to deploy Appwrite behind NAT and is facing difficulties in setting up SSL and accessing Appwrite.
Solution:
1. Check the SSL certificate: Verify that the SSL certificate is set correctly and matches the domain name.
2. Generate a new SSL certificate: Use the command `docker compose exec appwrite ssl` to generate a new SSL certificate for the Appwrite server.
3. Check Docker Compose: Ensure that NPM (Nginx Proxy Manager) is running as a docker container by checking the `docker-compose.yml` file and the specified ports and volumes.
4. Verify NPM setup: Confirm
Drake
Jan 7, 2024, 05:23
What's the problem?
bluesky
Rank 3: Container
Jan 7, 2024, 05:24
My Appwrite can't be acces.
Drake
Jan 7, 2024, 05:25
The most important things are to make sure traffic that hits Appwrite is https has the host header set
bluesky
Rank 3: Container
Jan 7, 2024, 05:26
This the settings of proxy
bluesky
Rank 3: Container
Jan 7, 2024, 05:26
And not using SSL for the proxy
bluesky
Rank 3: Container
Jan 7, 2024, 05:28
And this setup for the cloudflare
Drake
Jan 7, 2024, 05:28
Is NPM running in a docker container?
bluesky
Rank 3: Container
Jan 7, 2024, 05:28
How can I check this?
Drake
Jan 7, 2024, 05:29
How'd you set up NPM?
bluesky
Rank 3: Container
Jan 7, 2024, 05:29
Node Package Manager?
Drake
Jan 7, 2024, 05:29
Nginx proxy manager
bluesky
Rank 3: Container
Jan 7, 2024, 05:30
Owh, no. Nginx Proxy Manager is running in other VM. Which is one segment with the Appwrite..
bluesky
Rank 3: Container
Jan 7, 2024, 05:32
Owh, but Nginx Proxy Manager default is running inside docker