microscopic-answer-24504
11/24/2023, 10:26 AMfancy-wall-65751
11/25/2023, 12:40 PMKRATOS_PUBLIC_URL
and KRATOS_BROWSER_URL
. See its use in index.ts here. So, out of the box, you won’t be able to deal with that.
To get around that, a a possibility could be to serve your UI node on multiple domains (but point to the same instance), and add a mapping from you domain to the kratos instance to use. This does however mean you need to make modifcations to the self-service ui node. If you’re building your own UI, a similar approach could be possible.
If you want to have multiple selfservice ui node instance use the same kratos instance, this is just a matter of configuring the UI to communicate with the correct kratos instance. However, kratos is specific on setting the cookies to a specific domain. So it you want to use a.com and b.com , you can’t use a single kratos instance. Using <http://mango.a.com|mango.a.com>
and <http://banana.a.com|banana.a.com>
could work, if you set the session cookie to be set to <http://a.com|a.com>