Skip to content
Back

Custom Domain

  • 0
  • Self Hosted
adegbengaagoro
13 May, 2023, 10:16

Hi Guys,

I setup my custom domain but there is an aspect of it that is a bit confusing, I have searched through the history in support to see if anyone had custom domain issues; i read up on the conversations I found and adopting the instructions helped me get to my current state.

This is my context and what I have done so far:

Context:

  • Main domain was acquired with namecheap.com
  • NS records were set to those provided by DigitalOcean
  • I am using the DigitalOcean image of Appwrite which is currently running v1.3.4
  • My intended domain for use is https://infra.vitalsai.health

What I have done:

  • Created an A record on my main domain: appwrite.vitalsai.health points to my appwrite IP address
  • Created a CNAME on my main domain: infra.vitalsai.health which points to appwrite.vitalsai.health

Outcome:

  • The custom domain loads my appwrite instance
  • I have SSL activated against the custom domain

Confusion: Within Appwrite Settings for my project, the domain is listed but unverified

What does this mean and how does it impact my setup?

Sorry for the long-winded question and I appreciate any insights on this

cc @Aditya Oberai

TL;DR
User is seeking clarification on their custom domain setup for their Appwrite instance. They have a main domain registered with namecheap.com and have set the NS records to those provided by DigitalOcean. They are using the DigitalOcean image of Appwrite version 1.3.4. They have created an A record on their main domain for `appwrite.vitalsai.health` pointing to their Appwrite IP address, and a CNAME record for `infra.vitalsai.health` pointing to `appwrite.vitalsai.health`. The custom domain successfully loads the Appwrite instance and SSL is activated. However, within the Appwrite Settings for
Vedsaga
13 May, 2023, 11:13

Within Appwrite Settings for my project, the domain is listed but unverified

could you pls expand bit more...

Drake
13 May, 2023, 14:09

How many domains do you need for your Appwrite instance? Just infra.vitalsai.health? Or appwrite.vitalsai.health too?

adegbengaagoro
13 May, 2023, 16:44

This is a screenshot of my settings section

adegbengaagoro
13 May, 2023, 16:44

I only need https://infra.vitalsai.health for the Appwrite instance

Drake
13 May, 2023, 16:44

Then you don't need a custom domain

adegbengaagoro
13 May, 2023, 16:45

This is what I did on DigitalOcean

adegbengaagoro
13 May, 2023, 16:48

Prior to taking this action, I added infra.vitalsai.health as a domain on DigitalOcean and attached an A record to it pointing to the IP address

The outcome - Appwrite was extremely slow and SSL didn't work (could be because I hadn't run docker exec -it appwrite ssl) and I always got a blank page for the longest time and then Appwrite loads

Drake
13 May, 2023, 16:49

I don't think so.

Drake
13 May, 2023, 16:50

Why did you make that cname?

Drake
13 May, 2023, 16:50

Why did you make the A record with appwrite.whatever when you wanted infra.whatever?

Drake
13 May, 2023, 16:51

You only need the A record for infra.whatever if that's the only domain you need

adegbengaagoro
13 May, 2023, 17:04

I saw this as one of the comments regarding something close to my situation https://discord.com/channels/564160730845151244/1103160463585456249/1103164139523821618

adegbengaagoro
13 May, 2023, 17:06

So what are you recommending as the actual approach:

  1. Get rid of the custom domain
  2. Create an A record infra.vitalsai.health which points to the IP address of my Appwrite droplet

The End

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