[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
- appwrite auth problem regarding the sess...
Hi, I have problem with auth. When I try to login/signup using OTP, at the end session.secret is empty, i have searched online and in the docs but i cannot find...
 - dart appwrite 16.2.0 throws errors
Hi there, I just updated to 1.7.4 and also wanted to update the dart appwrite sdk to fit the appwrite version I am using now. So I updated to 16.2.0 and get th...
 - Server error on multiple requests
Hi there, I've updated from 1.5.7 to 1.7.4. I am using meilisearch for indexing and have therefore a dart script which syncs the appwrite data to meilisearch in...