From cdea979cc5b5ad07089c3ff934fd0dec64691533 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Wed, 23 Oct 2024 19:20:31 +0200 Subject: [PATCH] Enable agent support and remove unused tenant configurations Turned on agent support by setting `useAgents` to true in `Program.cs`. Also, cleaned up the `appsettings.json` file by removing configurations for tenants 'tenant-1' and 'tenant-2' which are no longer needed. --- src/apps/Elsa.Server.Web/Program.cs | 2 +- src/apps/Elsa.Server.Web/appsettings.json | 26 ----------------------- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/src/apps/Elsa.Server.Web/Program.cs b/src/apps/Elsa.Server.Web/Program.cs index 28ff7ae02..22620706f 100644 --- a/src/apps/Elsa.Server.Web/Program.cs +++ b/src/apps/Elsa.Server.Web/Program.cs @@ -66,7 +66,7 @@ const WorkflowRuntime workflowRuntime = WorkflowRuntime.ProtoActor; const DistributedCachingTransport distributedCachingTransport = DistributedCachingTransport.ProtoActor; const MassTransitBroker massTransitBroker = MassTransitBroker.Memory; const bool useMultitenancy = false; -const bool useAgents = false; +const bool useAgents = true; const bool useSecrets = true; const bool useAzureServiceBus = false; diff --git a/src/apps/Elsa.Server.Web/appsettings.json b/src/apps/Elsa.Server.Web/appsettings.json index 37cf9e14b..fb46c79e8 100644 --- a/src/apps/Elsa.Server.Web/appsettings.json +++ b/src/apps/Elsa.Server.Web/appsettings.json @@ -36,32 +36,6 @@ "Sqlite": "Data Source=App_Data/elsa.sqlite.db;Cache=Shared;" } } - }, - { - "Id": "tenant-1", - "Name": "Tenant 1", - "Configuration": { - "Http": { - "Prefix": "tenant-1", - "Host": "localhost:5002" - }, - "ConnectionStrings": { - "Sqlite": "Data Source=App_Data/elsa.tenant-1.sqlite.db;Cache=Shared;" - } - } - }, - { - "Id": "tenant-2", - "Name": "Tenant 2", - "Configuration": { - "Http": { - "Prefix": "tenant-2", - "Host": "localhost:5003" - }, - "ConnectionStrings": { - "Sqlite": "Data Source=App_Data/elsa.tenant-2.sqlite.db;Cache=Shared;" - } - } } ] },