From eb628056855db57ed168d69f767ba014064dd1f1 Mon Sep 17 00:00:00 2001 From: David Fowler Date: Wed, 31 Jan 2024 06:56:35 -0800 Subject: [PATCH] Use the slim builder to avoid loading static assets (#2013) - We're exposing a simple gRPC endpoint for the dashboard to talk to. We can avoid loading static assets completely (which causes all kinds of problems when things get out of sync). Fixes #2012 --- src/Aspire.Hosting/Dashboard/DashboardServiceHost.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Aspire.Hosting/Dashboard/DashboardServiceHost.cs b/src/Aspire.Hosting/Dashboard/DashboardServiceHost.cs index 48f609b247..262605a95f 100644 --- a/src/Aspire.Hosting/Dashboard/DashboardServiceHost.cs +++ b/src/Aspire.Hosting/Dashboard/DashboardServiceHost.cs @@ -67,7 +67,10 @@ public DashboardServiceHost( try { - var builder = WebApplication.CreateBuilder(); + var builder = WebApplication.CreateSlimBuilder(); + + // Turn on HTTPS + builder.WebHost.UseKestrelHttpsConfiguration(); // Configuration builder.Services.AddSingleton(configuration);