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.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace MultiShop.Server
|
||||
{
|
||||
@ -18,6 +15,11 @@ namespace MultiShop.Server
|
||||
|
||||
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
||||
Host.CreateDefaultBuilder(args)
|
||||
.ConfigureAppConfiguration((hostingContext, config) =>
|
||||
config.AddInMemoryCollection(new Dictionary<string, string>() {
|
||||
{"IdentityServer:Clients:MultiShop.Client:Profile", "IdentityServerSPA"}
|
||||
})
|
||||
)
|
||||
.ConfigureWebHostDefaults(webBuilder =>
|
||||
{
|
||||
webBuilder.UseStartup<Startup>();
|
||||
|
@ -15,12 +15,7 @@
|
||||
}
|
||||
},
|
||||
"IdentityServer": {
|
||||
"Registration": "enabled",
|
||||
"Clients": {
|
||||
"MultiShop.Client": {
|
||||
"Profile": "IdentityServerSPA"
|
||||
}
|
||||
}
|
||||
"Registration": "enabled"
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user