Browse Source
Merge pull request #346 from mhilgersom/master
Make orleans ports configurable
pull/347/head
Sebastian Stehle
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
11 additions and
2 deletions
-
src/Squidex/Config/Orleans/OrleansServices.cs
-
src/Squidex/appsettings.json
|
|
@ -58,7 +58,10 @@ namespace Squidex.Config.Orleans |
|
|
{ |
|
|
{ |
|
|
["MongoDB"] = () => |
|
|
["MongoDB"] = () => |
|
|
{ |
|
|
{ |
|
|
hostBuilder.ConfigureEndpoints(Dns.GetHostName(), 11111, 40000, listenOnAnyHostAddress: true); |
|
|
int siloPort = int.TryParse(config.GetRequiredValue("orleans:siloPort"), out siloPort) ? siloPort : 11111; |
|
|
|
|
|
int gatewayPort = int.TryParse(config.GetRequiredValue("orleans:gatewayPort"), out gatewayPort) ? gatewayPort : 40000; |
|
|
|
|
|
|
|
|
|
|
|
hostBuilder.ConfigureEndpoints(Dns.GetHostName(), siloPort, gatewayPort, listenOnAnyHostAddress: true); |
|
|
|
|
|
|
|
|
var mongoConfiguration = config.GetRequiredValue("store:mongoDb:configuration"); |
|
|
var mongoConfiguration = config.GetRequiredValue("store:mongoDb:configuration"); |
|
|
var mongoDatabaseName = config.GetRequiredValue("store:mongoDb:database"); |
|
|
var mongoDatabaseName = config.GetRequiredValue("store:mongoDb:database"); |
|
|
|
|
|
@ -177,7 +177,13 @@ |
|
|
* |
|
|
* |
|
|
* Supported: MongoDB, Development |
|
|
* Supported: MongoDB, Development |
|
|
*/ |
|
|
*/ |
|
|
"clustering": "MongoDb" |
|
|
"clustering": "MongoDb", |
|
|
|
|
|
/* |
|
|
|
|
|
* The ports used to host the Orleans silo and the Gateway to connect to it |
|
|
|
|
|
* optional: defaults to 11111 (silo) and 40000 (gateway) when not provided |
|
|
|
|
|
*/ |
|
|
|
|
|
"siloPort": "11111", |
|
|
|
|
|
"gatewayPort": "40000" |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
"eventStore": { |
|
|
"eventStore": { |
|
|
|