diff --git a/backend/src/Squidex/Config/Orleans/OrleansServices.cs b/backend/src/Squidex/Config/Orleans/OrleansServices.cs index 7f320a676..dc6a0b135 100644 --- a/backend/src/Squidex/Config/Orleans/OrleansServices.cs +++ b/backend/src/Squidex/Config/Orleans/OrleansServices.cs @@ -70,18 +70,18 @@ namespace Squidex.Config.Orleans var orleansPortSilo = config.GetOptionalValue("orleans:siloPort", 11111); var orleansPortGateway = config.GetOptionalValue("orleans:gatewayPort", 40000); - var address = Helper.ResolveIPAddressAsync(Dns.GetHostName(), AddressFamily.InterNetwork).Result; - - builder.ConfigureEndpoints( - address, - orleansPortSilo, - orleansPortGateway, - true); - config.ConfigureByOption("orleans:clustering", new Alternatives { ["MongoDB"] = () => { + var address = Helper.ResolveIPAddressAsync(Dns.GetHostName(), AddressFamily.InterNetwork).Result; + + builder.ConfigureEndpoints( + address, + orleansPortSilo, + orleansPortGateway, + true); + builder.UseMongoDBClustering(options => { options.Configure(config); @@ -89,7 +89,7 @@ namespace Squidex.Config.Orleans }, ["Development"] = () => { - builder.UseDevelopmentClustering(new IPEndPoint(address, orleansPortSilo)); + builder.UseLocalhostClustering(orleansPortSilo, orleansPortGateway); } });