[SOLVED] Struggling to verify custom domain to set up self hosting AppWrite with SSL
- 0
- Self Hosted
- Web

I am running a self-hosted version of AppWrite on a Digital Ocean droplet.
I am trying to add a subdomain to this instance so I can have an SSL certificate on it.
The anchorvine.com domain current has a 2x A records on it and is used for my frontend application which is on a difference Digital Ocean droplet:
anchorvine.com and www.anchorvine.com
I am trying to use another subdomain (appwrite) of this to point to my AppWrite self-hosted instance.
In my AppWrite .env I have
_APP_DOMAIN=appwrite.anchorvine.com _APP_DOMAIN_TARGET=appwrite.anchorvine.com
I have added a custom domain in AppWrite but it is not verifying it (see image)
AppWrite asks me to add a CNAME to the IP of my AppWrite Digital Ocean droplet - however my Domain Hosting service has said this is not possible as CNAMEs need to be sub domains not IP addresses as the image instructs me to do.
I have tried adding a CNAME of Name: appwrite Content: appwrite.anchorvine.com but it still fails to verify.

I think the type should actually be A

Yes, it should be an A record

Just waiting for it to propogate...

custom domain? It doesn't seem like you need a custom domain if you only need 1 domain for Appwrite

What URL are you accessing your Appwrite instance while on the page in this screenshot?

@Steven I can actually access AppWrite on appwrite.anchorvine.com now but it is http and insecure.
For my DNS I now have:
anchorvine.com A 46.101.14.22 (my application server) www.anchorvine.com A 46.101.14.22 (my application server) appwrite.anchorvine.com A 134.122.110.167 (my AppWrite server)
And my .env points to:
_APP_DOMAIN=appwrite.anchorvine.com _APP_DOMAIN_TARGET=appwrite.anchorvine.com
My understanding is because anchorvine.com already has an SSL certificate then this should be used for appwrite.anchorvine.com - but this is not happening. Would this be because www. and appwrite. are on different servers?

Appwrite will generate a certificate for the domain in the .env. It's not because of your root domain i.e. anchorvine.com

Please, answer this question

appwrite.anchorvine.com

Also, have you restarted the docker instance?

yes

Appwrite has generated the SSL already


Oh amazing!! Maybe there was just a delay or a caching issue? Thanks for letting me know @Ernest

so if it's only 1, you only need to set the domain in the .env file. No need to create a custom domain in a project.

Probably cache. Browsers may cache certificates

Thanks 😊

[SOLVED] Struggling to verify custom domain to set up self hosting AppWrite with SSL
Recommended threads
- Unable to read session cookie
Hi, when I am hitting Appwrite **/account** API. I am getting the user account details as expected in the response. However, with that API, Appwrite also adds a...
- Database error
My code: await databases.createDocument( process.env.APPWRITE_DATABASE, process.env.APPWRITE_COLLECTION_USER, data.userId, ...
- unable to remove project 500 error
We are unable to remove a project, when clicking setting option it showing 500 Server Error
