Hii, does kratos support multiple domains ?
# talk-kratos
s
Hii, does kratos support multiple domains ?
m
Hello @salmon-ice-67377 Yea, how many domains are you looking at? Also what is your use case, do these domains all need to be single tenants in the DB? You can deploy an instance of Ory Kratos per domain if you are selfhosting or use Ory Cloud where we built a whole multitenancy system that makes this scalable to many more domains
s
Hii @magnificent-energy-493 We are looking for two domains. And these two domains should be in one single tenant. And we already have a self hosted service. Our current implementation has
<http://foo.bar.com|foo.bar.com>
but want to change it to
<http://bar.com|bar.com>
and
<http://foo.com|foo.com>
.
If we point both the Kratos instances to the same database would that work ?
m
Yes that would work 🎉
b
Hi @magnificent-energy-493 so for testing locally I have 2 instances of kratos and kratos-2 and the public URL’s for them are http://127.0.0.1:4455/.ory/kratos/public and http://127.0.0.1:4455/.ory/kratos-2/public. Both instances are using same DB instance. The settings flow is working for the first kratos instance but not for kratos-2( it is not getting redirected to kratos and flow ID is not being appended). the settings configuration for kratos is:
Copy code
settings:
      ui_url: <http://127.0.0.1:4455/.factly/kavach/web/password>
      privileged_session_max_age: 1m
      required_aal: highest_available
the settings configuration for kratos-2 is:
Copy code
flows:
    settings:
      ui_url: <http://127.0.0.1:4455/.factly/mande/web/password/>
      privileged_session_max_age: 10m
      required_aal: highest_available
For kratos-2 I have just enabled settings flow as we don’t need other flows for that instance. Am I missing something?