From 474dce1aa74b79823191a957f8e61116ec561835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Szab=C3=B3?= Date: Mon, 6 Jan 2025 16:39:22 +0100 Subject: [PATCH] =?UTF-8?q?certifik=C3=A1ci=C3=B3hoz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/WorkFlowCheck.API/Program.cs | 8 ++++++++ src/WorkFlowCheck.API/Properties/launchSettings.json | 2 +- src/WorkFlowCheck.API/WorkFlowCheck.API.csproj | 6 ++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/WorkFlowCheck.API/Program.cs b/src/WorkFlowCheck.API/Program.cs index 8472790..b534504 100644 --- a/src/WorkFlowCheck.API/Program.cs +++ b/src/WorkFlowCheck.API/Program.cs @@ -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(options => options.UseSqlServer(builder.Configuration.GetConnectionString("DefaultConnection"))); diff --git a/src/WorkFlowCheck.API/Properties/launchSettings.json b/src/WorkFlowCheck.API/Properties/launchSettings.json index 55f2dec..2bc9139 100644 --- a/src/WorkFlowCheck.API/Properties/launchSettings.json +++ b/src/WorkFlowCheck.API/Properties/launchSettings.json @@ -6,7 +6,7 @@ "dotnetRunMessages": true, "launchBrowser": true, "launchUrl": "todos", - "applicationUrl": "https://localhost:5069", + "applicationUrl": "https://192.168.50.128:5069", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } diff --git a/src/WorkFlowCheck.API/WorkFlowCheck.API.csproj b/src/WorkFlowCheck.API/WorkFlowCheck.API.csproj index 68a71bf..45ebccc 100644 --- a/src/WorkFlowCheck.API/WorkFlowCheck.API.csproj +++ b/src/WorkFlowCheck.API/WorkFlowCheck.API.csproj @@ -18,4 +18,10 @@ + + + Always + + +