Back

Adding Domain in appwrite console in a VPS with cloudflare

  • 0
  • Self Hosted
  • Cloud
Binyamin
26 Jun, 2023, 15:35

Okay, what is the output of this

TypeScript
sudo lsof -i -P -n | grep LISTEN

And this You can attach it as txt

TypeScript
docker ps -a
TL;DR
The user is having trouble adding a domain in the appwrite console on their VPS with Cloudflare. They are seeking instructions on how to do this. There is no solution provided in this support thread.
$Bash
26 Jun, 2023, 15:36
$Bash
26 Jun, 2023, 15:36

for docker ps -a

Binyamin
26 Jun, 2023, 15:37

Good

Binyamin
26 Jun, 2023, 15:38

Now in the browser what you see when you access this uri https://cloud.domain.xyz:8443/versions

Replace cloud.domain.xyz with the domain the points to that server, using A record.

$Bash
26 Jun, 2023, 15:39

it redirected to the cloudflare becuase we specified the port right?

Binyamin
26 Jun, 2023, 15:40

What you mean, can you share screenshot

Binyamin
26 Jun, 2023, 15:40

You must specify the port, as you're not using not 80 nor 443 (https)

$Bash
26 Jun, 2023, 15:41
Binyamin
26 Jun, 2023, 15:45

Cool, You're set to go.

If you don't want to have non-regular ports, you'll have to create a reverse proxy inside you Nginx Check Steven's article on it here: https://medium.com/@stnguyen90/how-to-run-appwrite-behind-nginx-19348ed34243

$Bash
26 Jun, 2023, 15:47

ohh i get it yeah okay

$Bash
26 Jun, 2023, 15:47

thanks a lot

Binyamin
26 Jun, 2023, 15:47

<a:agooglethumbsup:635256484682530825>

$Bash
27 Jun, 2023, 13:48

sorry to message again but i am getting error when i am using my domain to access appwrite

$Bash
27 Jun, 2023, 13:48
$Bash
27 Jun, 2023, 13:49

i have added the exact domain in both _APP_DOMAIN=cloud.domain.xyz _APP_DOMAIN_TARGET=cloud.domain.xyz

$Bash
27 Jun, 2023, 13:50

and in nginx i am using proxy_pass to redirect to appwrite

$Bash
27 Jun, 2023, 13:50

if i use the IP address the console works just fine

Binyamin
27 Jun, 2023, 13:50

Can you share the headers you get back from the request in Network tab.

Drake
27 Jun, 2023, 18:49

Did you include the preserve host option in nginx?

$Bash
30 Jun, 2023, 03:31

i am really sorry for the late replay...... had a lot of work with me but here is the nginx sites-enabled for refernce

$Bash
30 Jun, 2023, 03:31
$Bash
30 Jun, 2023, 03:32

how to do that...... please instruct me

Drake
30 Jun, 2023, 06:18
Binyamin
30 Jun, 2023, 13:13

About the network tab part, This is what I've meant.

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