This message was deleted.
# general
m
This message was deleted.
f
Hi @orange-guitar-65918. I’ve got a little of experience with the Kratos open source implementation. Let’s start with using self-service to be used by diferent Kratos instances: If you look at the readme, you’ll notice that in order to use it, you need to specify variables to point to your kratos instance (a single one, that is).
KRATOS_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>