Moved some app settings to coded values.
Because these values shouldn't be changed for this appliction.
This commit is contained in:
parent
1fff881df4
commit
bbb2d4bd04
@ -1,11 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
|
|
||||||
namespace MultiShop.Server
|
namespace MultiShop.Server
|
||||||
{
|
{
|
||||||
@ -18,6 +15,11 @@ namespace MultiShop.Server
|
|||||||
|
|
||||||
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
||||||
Host.CreateDefaultBuilder(args)
|
Host.CreateDefaultBuilder(args)
|
||||||
|
.ConfigureAppConfiguration((hostingContext, config) =>
|
||||||
|
config.AddInMemoryCollection(new Dictionary<string, string>() {
|
||||||
|
{"IdentityServer:Clients:MultiShop.Client:Profile", "IdentityServerSPA"}
|
||||||
|
})
|
||||||
|
)
|
||||||
.ConfigureWebHostDefaults(webBuilder =>
|
.ConfigureWebHostDefaults(webBuilder =>
|
||||||
{
|
{
|
||||||
webBuilder.UseStartup<Startup>();
|
webBuilder.UseStartup<Startup>();
|
||||||
|
@ -15,12 +15,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"IdentityServer": {
|
"IdentityServer": {
|
||||||
"Registration": "enabled",
|
"Registration": "enabled"
|
||||||
"Clients": {
|
|
||||||
"MultiShop.Client": {
|
|
||||||
"Profile": "IdentityServerSPA"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"AllowedHosts": "*"
|
"AllowedHosts": "*"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user