This commit is contained in:
2023-07-31 21:58:44 +03:00
parent 33aa0ef807
commit c82f8e3537
2 changed files with 3 additions and 19 deletions
+3 -1
View File
@@ -341,6 +341,9 @@ public class Program
globalSettings.Host = GetFrontendHost(ctx, logger); globalSettings.Host = GetFrontendHost(ctx, logger);
} }
logger.LogInformation($"Is dynamic host: {isDynamicFrontEndHost}");
logger.LogInformation($"Init Host: {globalSettings.Host}");
// update identity server // update identity server
var options = ctx.RequestServices.GetRequiredService<IdentityServerOptions>(); var options = ctx.RequestServices.GetRequiredService<IdentityServerOptions>();
options.IssuerUri = globalSettings.Host; options.IssuerUri = globalSettings.Host;
@@ -360,7 +363,6 @@ public class Program
if (path.Value.EqualsIgnoreCase("/.well-known/openid-configuration")) if (path.Value.EqualsIgnoreCase("/.well-known/openid-configuration"))
{ {
globalSettings ??= ctx.RequestServices.GetRequiredService<GlobalSettings>(); globalSettings ??= ctx.RequestServices.GetRequiredService<GlobalSettings>();
logger.LogInformation($"OC Host: {globalSettings.Host}");
ctx.SetIdentityServerOrigin(globalSettings.Host); ctx.SetIdentityServerOrigin(globalSettings.Host);
var options = ctx.RequestServices.GetRequiredService<IdentityServerOptions>(); var options = ctx.RequestServices.GetRequiredService<IdentityServerOptions>();
options.IssuerUri = globalSettings.Host; options.IssuerUri = globalSettings.Host;
-18
View File
@@ -10,27 +10,9 @@ function Write2 {
Write-Output "-----------------------------------------------" 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" } $dotnet = $args | where { $_ -eq "dotnet" }
$spa = $args | where { $_ -eq "spa" } $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)) { if ((!$dotnet) -and (!$spa)) {
$dotnet = "dotnet" $dotnet = "dotnet"