[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
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- apple exchange code to token
hello guys, im new here π I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...