
What is the difference between app domains and app domains target

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).

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

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.

Got it thank you
Recommended threads
- Unable to View / Edit Bucket Files
Hi! I am unable to view / edit Bucket Files. While Previews work just fine, clicking the actual file to view or edit it produces the errors seen in the attache...
- How to remove the Sign up link after cre...
Greetings, i just installed appwrite on a VPS and created an account but now i do not want others to have access to the sign-up page. Is there any way to hide o...
- Does self-hosted Appwrite have read cach...
I wanted to switch from local storage to S3 (more specifically Backblaze B2), but I would like to have ~100GB on my VPS as read cache, so most frequently access...
