Add KestrelHttpsConfiguration to allow for HTTPS binding at the process level

This commit is contained in:
Jeff Leung 2024-08-21 10:54:31 -07:00
parent 65f50ee840
commit cb14589a4a
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ var builder = WebApplication.CreateSlimBuilder(args);
builder.WebHost.ConfigureKestrel(options => {
options.Limits.MaxRequestBodySize = long.MaxValue;
});
}).UseKestrelHttpsConfiguration();
builder.Services.AddLogging();
builder.Logging.AddConsole();