#[SOLVED] Issue verifying custom domain
30 messages · Page 1 of 1 (latest)
What is the response you get with the 401 error?
{"message":"Domain verification for the requested domain has failed.","code":401,"type":"domain_verification_failed","version":"1.2.1"}
This means that checking for the CNAME record against your DNS server has failed. Your CNAME record should look like this:
Might also be good to check what is the value of your env var _APP_DOMAIN_TARGET. You can do that by using this command: docker compose exec appwrite vars
Should i run this command inside appwrite directory?
yes
docker: 'compose' is not a docker command.
Try docker-compose exec appwrite vars instead
The same 😦
That's weird, is your docker running?
Make sure you use docker-compose and not docker compose
Suppose so because I can enter Appwrite console on my VPS :0
Sure, double checked
Same exact error?
But I can check it via .env file itself
Yes
And in .env file there is my main domain, without api. prefix
In .env, in 99% of the cases, you probably want _APP_DOMAIN_TARGET to be the same as _APP_DOMAIN, most likely this is why verification fails
Oh my, I had to install docker-compose package separately
ok, I'll check it
You have here more information about how to update env vars: https://appwrite.io/docs/environment-variables
Should I restart docker after updating my env file?
Restart is not enough, you need to recreate containers. docker-compose up -d should do the trick
So in my case the _APP_DOMAI and _APP_DOMAIN_TARGET should be the same and equal api.[my-domain-name], correct?
yes
Finally it verified but the connection it still unsecure (http against https). Should I make additional steps to make it work?
Nevermind, should add https before domain 🙂 thanks a lot @frail harbor
🥳
You welcome! Please add [SOLVED] to the title of this thread