If I have appwrite setup at appwrite.domain.com, could I have multiple domain names - one for each project like appwrite.project1.domain.com and appwrite.project2.domain.com? Multiple domain so cookies aren't treated as third party cookies.
Trying to use CNAME record for appwrite.project1.domain.com gives me Invalid Origin. Register your new client (appwrite.project1.domain.com) as a new Web platform on your project console dashboard"
Hey there 👋 This is possible.
You should set .env
file to have your organization domain, and then for your projects, add domains as custom domains. You add custom domains in Appwrite Console, in project settings.
So that would be domain.com for above case?
If you dont have organization domain, you can use one of the project instead of oranization, and only add custom domains to the rest of the projects.
If you do that, keep in mind, if this first domain goes down (project is discontinued), all the other projects will stop working because of domain configuration. You would need to configure domain of some other project as organization domain in that case
How do I add organization domain?
Oh, my bad, I meant organization like in real world, not as concept in Appwrite.
To add the main domain (the one that cant stop working or everything else fails), you open .env
and update values of _APP_DOMAIN
and _APP_DOMAIN_TARGET
. After saving changes, restart Appwrite with docker compose down && docker compose up -d
@Nevus did you get this resolved? Checking to see if we close this 🙂
Yes it's resolved. Thank you.
[SOLVED] Using appwrite for different project
Recommended threads
- Current User is Not authorized
recreating same Thread
- Account Status
Hello! I'm a student and am in the GitHub Student Organization, and according to GitHub, I am recieving pro membership via the Student Dev Pack. However, when I...
- Refund Request - Just purchased 2 mins a...
Hello Appwrite Team! I am a student and like 2 minutes ago I purchased Appwrite Pro ($15) because I had reached a limit on the number of attributes in a collect...