Back

Custom domain

  • 0
  • Self Hosted
jaydenclerk
13 Aug, 2023, 04:25

What is the difference between app domains and app domains target

TL;DR
Summary: The user is asking for clarification on the difference between "app domains" and "app domain targets" in Appwrite. The support thread explains that "app domains" are used for the main domain of the Appwrite instance, while "app domain targets" are used for custom project domains. It is recommended to set both values to the same domain. The thread also mentions that the "app domains" setting is used for Appwrite Console functionality and to generate a certificate for the domain. Solution: Set both "app domains" and "app domain targets" to the main domain of the Appwrite instance.
Drake
13 Aug, 2023, 04:31

They're used for different things inside Appwrite but you typically set it to the same thing.

The app domain environment variable says this is the main domain of this Appwrite instance so that the Appwrite Console will run okay on that domain. In addition, Appwrite will generate a certificate for that domain

The app domain target environment variable I used for custom project domains. It validates that the new domain you created points to the correct domain (for the cname record).

jaydenclerk
13 Aug, 2023, 04:33

So I should set my main domain example.com on both values then on the console I can add my subdomain per project?

Drake
13 Aug, 2023, 04:39

Typically, you have a main domain you access Appwrite on (like appwrite.example.com). Then, you have projects you create (like my-awesome-app.com) and if you need an Appwrite domain for that app, you'd create a custom domain in your project (like appwrite.my-awesome-app.com).

In any case, both the app domain and app domain targets would be appwrite.example.com.

jaydenclerk
13 Aug, 2023, 04:40

Got it thank you

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