This repository was archived by the owner on Nov 21, 2018. It is now read-only.

Description
• Create a new Microsoft.AspNetCore.Configuration that will contain all of our default config schema/setup which lives only in the meta package.
• It will provide a single services.ConfigureAspNetDefaults() [naming TBD] which will add all of the default config conventions, none of the existing AddXyz() methods will use IConfiguration (and we should potentially remove any overloads that exist today)
• Implementation detail: a ConfigureAspNet that implements IConfigureOptions for all things we want to configure by default
• For preview 2, this will consist of whatever is being configured in the templates today (Authentication, IdentityService, Kestrel)
• Longer term: Have intellense/schema for the important config settings.
• The structure of the config will be nested: example using today’s indidual Auth template
"Microsoft": {
"Logging": {
"IncludeScopes": false,
"Debug": {
"LogLevel": {
"Default": "Warning"
}
},
"Console": {
"LogLevel": {
"Default": "Warning"
}
}
},
"AspNetCore": {
"Authentication": {
"IdentityService": {
"ClientId": "C06ACE17-3212-454B-84AB-14DDB2FC58E0",
"TokenRedirectUrn": "urn:self:aspnet:identity:integrated"
}
},
"Hosting": {
"Kestrel": { // https://github.com/aspnet/MetaPackages/blob/dev/src/Microsoft.AspNetCore/KestrelServerOptionsSetup.cs
"Endpoints": {
"Localhost": {
"Address": "127.0.0.1",
"Port": "5000"
},
"LocalhostWithHttps": {
"Address": "127.0.0.1",
"Port": "44333",
"Certificate": {
"Source": "Store",
"StoreLocation": "LocalMachine",
"StoreName": "My",
"Subject": "CN=localhost"
}
}
}
}