mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00
simplify secrets in startup via csproj tools
This commit is contained in:
@ -16,17 +16,12 @@ namespace Bit.Billing
|
||||
{
|
||||
public class Startup
|
||||
{
|
||||
public Startup(IHostingEnvironment env)
|
||||
public Startup(IConfiguration configuration)
|
||||
{
|
||||
var builder = new ConfigurationBuilder();
|
||||
if(env.IsDevelopment())
|
||||
{
|
||||
builder.AddUserSecrets("bitwarden-Billing");
|
||||
}
|
||||
Configuration = builder.Build();
|
||||
Configuration = configuration;
|
||||
}
|
||||
|
||||
public IConfigurationRoot Configuration { get; }
|
||||
public IConfiguration Configuration { get; }
|
||||
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
|
Reference in New Issue
Block a user