Add protected files support
This commit is contained in:
parent
2976bd0d83
commit
09f42d2f2b
2
.gitignore
vendored
2
.gitignore
vendored
@ -226,6 +226,6 @@ Thumbs.db
|
|||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
# custom
|
# custom
|
||||||
/*/appsettings.protected.json
|
/**/**/appsettings.protected.json
|
||||||
|
|
||||||
**/**/deployment.yml
|
**/**/deployment.yml
|
||||||
|
|||||||
@ -11,6 +11,8 @@ public class HostBuilderFactory<TStartup> where TStartup : class
|
|||||||
{
|
{
|
||||||
if (!string.IsNullOrWhiteSpace(baseDirectory))
|
if (!string.IsNullOrWhiteSpace(baseDirectory))
|
||||||
configurationBuilder.SetBasePath(baseDirectory);
|
configurationBuilder.SetBasePath(baseDirectory);
|
||||||
|
|
||||||
|
configurationBuilder.AddJsonFile("appsettings.protected.json", false);
|
||||||
})
|
})
|
||||||
.ConfigureWebHostDefaults(host => { host.UseStartup<TStartup>(); })
|
.ConfigureWebHostDefaults(host => { host.UseStartup<TStartup>(); })
|
||||||
.UseSerilog((ctx, logBuilder) =>
|
.UseSerilog((ctx, logBuilder) =>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user