Rank 5: Hypervisor
Yes, I know what NPM is. But is Cloudflare pointing directly at the Appwrite port, or at NPM’s port?
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 5: Hypervisor
Yes, I know what NPM is. But is Cloudflare pointing directly at the Appwrite port, or at NPM’s port?
Rank 1: Thread
Ok in cloudflare it points to the VPS IP
Rank 2: Process
@s.o You can follow this guide to use Nginx as proxy server.
👇
https://medium.com/@zia-ch/how-to-run-appwrite-with-nginx-professionally-5ba420789ef0
Rank 5: Hypervisor
And to port 80, I presume? Could you switch Cloudflare to point to the Appwrite port?
Rank 5: Hypervisor
I don’t really see the relevance of NGINX here
Rank 1: Thread
Because all the subdomains are managed by cloudflare?
Rank 1: Thread
I checked the resource but had two questions.
Rank 2: Process
For option 2: you just have to install Nginx as described in the guide not as a container.
For 1: i think every request from cloud flare will already be an https request so you can easily redirect it to your appwritw instance.
You just need to follow the guide as such and if in case you face any issues, do contact.
Rank 1: Thread
👍
Rank 1: Thread
Kindly check my configuration. I have an A record in cloudflare that points to the VPS IP
Rank 5: Hypervisor
I believe CF will be intercepting the request and therefore the ACME challenge is never reaching NGINX
Rank 5: Hypervisor
But if you’re using CF as a proxy, CF issues a cert which terminates with them, and they’ll provide you with a certificate you can use locally that’ll only be accepted by CF
Rank 5: Hypervisor
Although probably the simplest and most secure way to get it working is with Cloudflare Tunnels and cloudflared.
Rank 2: Process
You don't havd to write certboot commands because we use it to generate ssl and you already have your ssl from cloud flare so you don't need it just use all Nginx related commands.
Rank 2: Process
And your configuration is okey. Just run it and try to access your appwrite console. Also do check you have allowed Full Nginx.
Rank 1: Thread
Still not reachable.
Rank 2: Process
May you show the error log or any errors that are showing up
Rank 1: Thread
On browser or on appwrite instance?
Rank 2: Process
On browser and Nginx error log as well.
Rank 1: Thread
Nothing being logged for nginx error log in the location /var/log/nginx/clinkod.access.log
Rank 1: Thread
neither error.log
Rank 1: Thread
This is the best route for me. This question should be marked as resolved
Rank 5: Hypervisor
You can add [SOLVED] to the beginning of the title
Rank 1: Thread
[Solved] Getway time out Selfhost Configuration with Nginx (NPM) and Cloudflare.
For NPM as a docker container, you can refer to https://medium.com/@stnguyen90/how-to-run-appwrite-behind-nginx-19348ed34243