From a5c32df806d6445f255c1c42d58e2b61cf31fad6 Mon Sep 17 00:00:00 2001 From: Ryan Peters Date: Mon, 9 Jan 2023 16:56:30 -0500 Subject: [PATCH] minor cleanup of startup --- BinaryDad.Notes.csproj | 5 ----- Program.cs | 5 +---- Properties/launchSettings.json | 2 +- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/BinaryDad.Notes.csproj b/BinaryDad.Notes.csproj index 54dd2be..f06de61 100644 --- a/BinaryDad.Notes.csproj +++ b/BinaryDad.Notes.csproj @@ -4,13 +4,8 @@ net7.0 enable enable - 36e65961-6eee-4cc2-b35e-aafd9f9e6a6f Linux . - - - - diff --git a/Program.cs b/Program.cs index 0f233fa..731b0d9 100644 --- a/Program.cs +++ b/Program.cs @@ -11,12 +11,9 @@ var app = builder.Build(); // Configure the HTTP request pipeline. if (!app.Environment.IsDevelopment()) { - app.UseExceptionHandler("/Home/Error"); - // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. - app.UseHsts(); + app.UseHttpsRedirection(); } -app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); diff --git a/Properties/launchSettings.json b/Properties/launchSettings.json index 89dd84e..b02486a 100644 --- a/Properties/launchSettings.json +++ b/Properties/launchSettings.json @@ -38,7 +38,7 @@ "anonymousAuthentication": true, "iisExpress": { "applicationUrl": "http://localhost:2334", - "sslPort": 44381 + "sslPort": 0 } } } \ No newline at end of file