fix
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user