certifikációhoz

This commit is contained in:
Iván Szabó
2025-01-06 16:39:22 +01:00
parent 92801fefb9
commit 474dce1aa7
3 changed files with 15 additions and 1 deletions
+8
View File
@@ -8,6 +8,14 @@ using Microsoft.AspNetCore.Mvc;
var builder = WebApplication.CreateBuilder(args);
builder.WebHost.ConfigureKestrel(options =>
{
options.ListenAnyIP(5069, listenOptions =>
{
listenOptions.UseHttps(Path.Combine(AppContext.BaseDirectory, "Certs", "SwaggerCert.pfx"), "Noispot135!Xy()zz654321");
});
});
builder.Services.AddDbContext<AppDbContext>(options =>
options.UseSqlServer(builder.Configuration.GetConnectionString("DefaultConnection")));