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
- Download appwrite Docs
Is there is a way to download appwrite Docs ? Because appwrite skill isn't enough to give the agent full understanding about how appwrite works (I noticed this ...
- How do you contact support to cancel a s...
My nephew signed up with my CC without my permission and has forgotten the password to the account. I can't for the life of me get a hold of anyone at appwrite....
- I have try to use the appwrite in to the...
Invalid Origin. Register your new client (oailedjdbkhlkakmnnapoonllbnfmfij) as a new Web (Chrome Extension) platform on your project console dashboard