Browse Source

Config fixes

pull/1/head
Sebastian 9 years ago
parent
commit
61602d3a78
  1. 4
      src/Squidex/Config/Domain/ClusterModule.cs
  2. 14
      src/Squidex/appsettings.json

4
src/Squidex/Config/Domain/ClusterModule.cs

@ -30,9 +30,9 @@ namespace Squidex.Config.Domain
protected override void Load(ContainerBuilder builder)
{
var canCatch = Configuration.GetValue<bool>("squidex:catch");
var handleEvents = Configuration.GetValue<bool>("squidex:handleEvents");
if (canCatch)
if (handleEvents)
{
builder.RegisterType<EventReceiver>()
.AsSelf()

14
src/Squidex/appsettings.json

@ -3,12 +3,11 @@
"urls": {
"baseUrl": "http://localhost:5000"
},
"eventBus": {
"type": "rabbitMq",
"rabbitMq": {
"connectionString": "amqp://guest:guest@localhost"
},
"catch": true
"clusterer": {
"type": "redis",
"redis": {
"connectionString": "redis://localhost:6379"
}
},
"eventStore": {
"type": "mongoDb",
@ -27,6 +26,7 @@
"identity": {
"googleClient": "1006817248705-t3lb3ge808m9am4t7upqth79hulk456l.apps.googleusercontent.com",
"googleSecret": "QsEi-fHqkGw2_PjJmtNHf2wg"
}
},
"handleEvents": true
}
}
Loading…
Cancel
Save