From c82f8e3537f2f08add9ace5f8564f8e3a304e54b Mon Sep 17 00:00:00 2001 From: Alexandr Sulimov Date: Mon, 31 Jul 2023 21:58:44 +0300 Subject: [PATCH] fix --- MyOffice.Web/Program.cs | 4 +++- build.ps1 | 18 ------------------ 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/MyOffice.Web/Program.cs b/MyOffice.Web/Program.cs index 86524b0..4dad839 100644 --- a/MyOffice.Web/Program.cs +++ b/MyOffice.Web/Program.cs @@ -341,6 +341,9 @@ public class Program globalSettings.Host = GetFrontendHost(ctx, logger); } + logger.LogInformation($"Is dynamic host: {isDynamicFrontEndHost}"); + logger.LogInformation($"Init Host: {globalSettings.Host}"); + // update identity server var options = ctx.RequestServices.GetRequiredService(); options.IssuerUri = globalSettings.Host; @@ -360,7 +363,6 @@ public class Program if (path.Value.EqualsIgnoreCase("/.well-known/openid-configuration")) { globalSettings ??= ctx.RequestServices.GetRequiredService(); - logger.LogInformation($"OC Host: {globalSettings.Host}"); ctx.SetIdentityServerOrigin(globalSettings.Host); var options = ctx.RequestServices.GetRequiredService(); options.IssuerUri = globalSettings.Host; diff --git a/build.ps1 b/build.ps1 index f08980a..35dc413 100644 --- a/build.ps1 +++ b/build.ps1 @@ -10,27 +10,9 @@ function Write2 { Write-Output "-----------------------------------------------" } -function ReadParams { - Param ([string] $str1) - - Get-Content -Path $str1| ForEach-Object { - $x = $_.split('='); - $params[$x[0]] = $x[1]; - } -} - -$publish_folder="_Published" -$params_file="params.txt" - $dotnet = $args | where { $_ -eq "dotnet" } $spa = $args | where { $_ -eq "spa" } -$file = $args | where { ($_ -ne "dotnet" -and $_ -ne "spa") } -if ($file) { - $params_file = $file -} - -ReadParams($params_file) if ((!$dotnet) -and (!$spa)) { $dotnet = "dotnet"