1
0
mirror of https://github.com/bitwarden/server synced 2025-12-28 14:13:48 +00:00

move to standard appsettings.json

This commit is contained in:
Kyle Spearrin
2017-10-18 23:32:27 -04:00
parent 045056389d
commit 8b07244c95
19 changed files with 26 additions and 33 deletions

View File

@@ -15,8 +15,17 @@ namespace Bit.Jobs
public Startup(IHostingEnvironment env)
{
var builder = new ConfigurationBuilder()
.AddSettingsConfiguration(env, "bitwarden-Jobs")
.AddEnvironmentVariables();
.SetBasePath(env.ContentRootPath)
.AddJsonFile("appsettings.json")
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true);
if(env.IsDevelopment())
{
builder.AddUserSecrets("bitwarden-Jobs");
}
builder.AddEnvironmentVariables();
Configuration = builder.Build();
Environment = env;
}