raykoshima
raykoshima2mo ago

domain per organization

I can set a organization to login using login scope but when I make a nginx redirect to my main instance here is overview - I self host zitadel with docker compose with ENV set ZITADEL_EXTERNALDOMAIN=accounts.company.com - I'm using nginx proxy manager - my main domain with default instance is accounts.company.com point to docker that I set - I have a second organization call domain2 and register subdomain with accounts.domain2.com also add it into verified domains - subdomain accounts.domain2.com is also point to docker that I set - I got this error
unable to set instance using origin &{accounts.domain2.com https} (ExternalDomain is accounts.company.com): ID=QUERY-1kIjX Message=Instance not found. Make sure you got the domain right. Check out https://zitadel.com/docs/apis/introduction#domains
unable to set instance using origin &{accounts.domain2.com https} (ExternalDomain is accounts.company.com): ID=QUERY-1kIjX Message=Instance not found. Make sure you got the domain right. Check out https://zitadel.com/docs/apis/introduction#domains
I follow the Organization Domains document also when domain using api /system/v1/zitadel.instance.v2beta.InstanceService/AddCustomDomain it not found like in image how do I setting?
No description
1 Reply
Rajat
Rajat2mo ago
hey @raykoshima the issue seems to me is that accounts.domain2.com is configured as org domain BUT but ZITADEL is expecting it to be an Instance Custom Domain(screenshot). Custom Domains are used to access the zitadel instance itself. org domains are used for domain discovery and user routing within an existing instance. you should read this a bit to understand instance and orgs

Did you find this page helpful?