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) 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>() builder.RegisterType<EventReceiver>()
.AsSelf() .AsSelf()

14
src/Squidex/appsettings.json

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