#[SOLVED] Issue verifying custom domain

30 messages · Page 1 of 1 (latest)

glacial rose
#

Hi! I've added a custom domain to my Appwrite instance. And it accessible via api.[my-domain-name] but verifying of the domain is failed with the 401 error. My hosting provider config is attached. Any ideas how to fix it?

frail harbor
glacial rose
#

{"message":"Domain verification for the requested domain has failed.","code":401,"type":"domain_verification_failed","version":"1.2.1"}

frail harbor
#

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

glacial rose
frail harbor
#

yes

glacial rose
#

docker: 'compose' is not a docker command.

frail harbor
glacial rose
#

The same 😦

frail harbor
#

Make sure you use docker-compose and not docker compose

glacial rose
#

Suppose so because I can enter Appwrite console on my VPS :0

glacial rose
frail harbor
#

Same exact error?

glacial rose
#

But I can check it via .env file itself

glacial rose
#

And in .env file there is my main domain, without api. prefix

frail harbor
glacial rose
#

Oh my, I had to install docker-compose package separately

frail harbor
glacial rose
#

Should I restart docker after updating my env file?

frail harbor
glacial rose
#

So in my case the _APP_DOMAI and _APP_DOMAIN_TARGET should be the same and equal api.[my-domain-name], correct?

glacial rose
#

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

frail harbor
#

🥳

frail harbor