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