Fix things not pulling from settings

This commit is contained in:
Pat Hartl 2023-01-26 01:10:32 -06:00
parent 7f98697db2
commit d7d8e49ec7

View file

@ -26,7 +26,7 @@ builder.WebHost.ConfigureKestrel(options =>
builder.Services.AddDbContext<LANCommander.Data.DatabaseContext>(b =>
{
b.UseLazyLoadingProxies();
b.UseSqlite(connectionString);
b.UseSqlite(settings.DatabaseConnectionString);
});
builder.Services.AddDatabaseDeveloperPageExceptionFilter();
@ -57,7 +57,7 @@ builder.Services.AddAuthentication(options =>
ValidateAudience = false,
// ValidAudience = configuration["JWT:ValidAudience"],
// ValidIssuer = configuration["JWT:ValidIssuer"],
IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(configuration["JWT:Secret"]))
IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(settings.TokenSecret))
};
});