From 0827df7d33fc6b3aa7b823b723dec62179ead6bb Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Fri, 6 Sep 2024 19:06:59 +0200 Subject: [PATCH] Update HTTP configuration to use 'Hosting' settings Changed the binding of HTTP options to 'Hosting' settings in Program.cs to ensure consistent configuration across the application. Removed redundant 'Http' configuration section from appsettings.json. --- src/apps/Elsa.ServerAndStudio.Web/Program.cs | 2 +- src/apps/Elsa.ServerAndStudio.Web/appsettings.json | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/apps/Elsa.ServerAndStudio.Web/Program.cs b/src/apps/Elsa.ServerAndStudio.Web/Program.cs index 2158228d2..6aa96e493 100644 --- a/src/apps/Elsa.ServerAndStudio.Web/Program.cs +++ b/src/apps/Elsa.ServerAndStudio.Web/Program.cs @@ -100,7 +100,7 @@ services if (useCaching) http.UseCache(); - http.ConfigureHttpOptions = options => configuration.GetSection("Http").Bind(options); + http.ConfigureHttpOptions = options => configuration.GetSection("Hosting").Bind(options); }) .UseEmail(email => email.ConfigureOptions = options => configuration.GetSection("Smtp").Bind(options)) .UseWebhooks(webhooks => webhooks.ConfigureSinks = options => builder.Configuration.GetSection("Webhooks:Sinks").Bind(options)) diff --git a/src/apps/Elsa.ServerAndStudio.Web/appsettings.json b/src/apps/Elsa.ServerAndStudio.Web/appsettings.json index db952c4fd..11ff6e0b8 100644 --- a/src/apps/Elsa.ServerAndStudio.Web/appsettings.json +++ b/src/apps/Elsa.ServerAndStudio.Web/appsettings.json @@ -19,7 +19,7 @@ }, "Hosting": { "BaseUrl": "https://localhost:8080", - "BasePath": "" + "BasePath": "/api/workflows" }, "Identity": { "Tokens": { @@ -81,10 +81,6 @@ "Port": 2525, "DefaultSender": "noreply@crmservices.com" }, - "Http": { - "BaseUrl": "https://localhost:5001", - "BasePath": "/api/workflows" - }, "Webhooks": { "Sinks": [] },