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
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?
1 Reply
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