Back

[SOLVED] Issue verifying custom domain

  • 0
  • Self Hosted
  • Web
Eldad
11 Mar, 2023, 18:25

yes

TL;DR
Issue: The user was having trouble verifying their custom domain and was unsure if additional steps were needed to make it work. Solution: The user needed to make sure to add `https` before their domain. They also needed to recreate containers by running `docker-compose up -d`. Restarting Docker after updating the `.env` file may also be necessary. The user should check the `.env` file to ensure that `_APP_DOMAIN_TARGET` is the same as `_APP_DOMAIN` in most cases. The user should also make sure that the Docker Compose package is installed separately. If the verification still fails, the user can check the App
AndrewIAm
11 Mar, 2023, 18:25

docker: 'compose' is not a docker command.

Eldad
11 Mar, 2023, 18:26

Try docker-compose exec appwrite vars instead

AndrewIAm
11 Mar, 2023, 18:26

The same 😦

Eldad
11 Mar, 2023, 18:26

That's weird, is your docker running?

Eldad
11 Mar, 2023, 18:27

Make sure you use docker-compose and not docker compose

AndrewIAm
11 Mar, 2023, 18:27

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

AndrewIAm
11 Mar, 2023, 18:27

Sure, double checked

Eldad
11 Mar, 2023, 18:28

Same exact error?

AndrewIAm
11 Mar, 2023, 18:28

But I can check it via .env file itself

AndrewIAm
11 Mar, 2023, 18:29

Yes

AndrewIAm
11 Mar, 2023, 18:29

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

Eldad
11 Mar, 2023, 18:30

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

AndrewIAm
11 Mar, 2023, 18:30

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

AndrewIAm
11 Mar, 2023, 18:31

ok, I'll check it

Eldad
11 Mar, 2023, 18:32

You have here more information about how to update env vars: https://appwrite.io/docs/environment-variables

AndrewIAm
11 Mar, 2023, 18:33

Should I restart docker after updating my env file?

Eldad
11 Mar, 2023, 18:34

Restart is not enough, you need to recreate containers. docker-compose up -d should do the trick

AndrewIAm
11 Mar, 2023, 18:36

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

Eldad
11 Mar, 2023, 18:36

yes

AndrewIAm
11 Mar, 2023, 18:38

Finally it verified but the connection it still unsecure (http against https). Should I make additional steps to make it work?

AndrewIAm
11 Mar, 2023, 18:40

Nevermind, should add https before domain πŸ™‚ thanks a lot @Eldad

Eldad
11 Mar, 2023, 18:41

πŸ₯³

Eldad
11 Mar, 2023, 18:41

You welcome! Please add [SOLVED] to the title of this thread

AndrewIAm
11 Mar, 2023, 18:42

[SOLVED] Issue verifying custom domain

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more