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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user