From e4c60c2324ad6e95b45dc2d906be7face9795999 Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Tue, 24 Jan 2023 18:23:32 -0600 Subject: [PATCH] Allows local network to access running instance --- LANCommander/Program.cs | 2 +- LANCommander/appsettings.json | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/LANCommander/Program.cs b/LANCommander/Program.cs index 58b0547..57c067b 100644 --- a/LANCommander/Program.cs +++ b/LANCommander/Program.cs @@ -84,7 +84,7 @@ else app.UseHsts(); } -app.UseHttpsRedirection(); +// app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); diff --git a/LANCommander/appsettings.json b/LANCommander/appsettings.json index e3c11b1..1733795 100644 --- a/LANCommander/appsettings.json +++ b/LANCommander/appsettings.json @@ -8,6 +8,16 @@ "Microsoft.AspNetCore": "Warning" } }, + "Kestrel": { + "Endpoints": { + "Http": { + "Url": "http://0.0.0.0:5000" + }, + "Https": { + "Url": "https://0.0.0.0:5001" + } + } + }, "AllowedHosts": "*", "JWT": { "ValidAudience": "",