Compare commits

...

2 Commits

Author SHA1 Message Date
daceab9c12 Supress Warning In `Program.cs` 2025-06-15 14:58:21 -07:00
75dbfa9c03 Modify `appsettings.Development.json`
Add ``appsettings.json``
2025-06-15 14:58:12 -07:00
3 changed files with 31 additions and 1 deletions

View File

@ -37,7 +37,7 @@ builder.Services.AddDbContext<DataContext>(options =>
return;
}
if (builder.Environment.IsProduction()) options.UseMySQL(builder.Configuration.GetConnectionString("DefaultConnection"));
if (builder.Environment.IsProduction()) options.UseMySQL(builder.Configuration.GetConnectionString("DefaultConnection")!);
else options.UseSqlite(builder.Configuration.GetConnectionString("DevelopmentConnection"));
// ignore pending model changes warning

View File

@ -1,4 +1,16 @@
{
"Jwt": {
"Key": "bgpLLhY2L2UeZN3sj6WwSzScFmY3JgWfs33ZEJNcaPzC2TEnfZz",
"Issuer": "http://localhost",
"Audience": "http://localhost",
"DefaultUserRole": "User"
},
"ConnectionStrings": {
"DevelopmentConnection": "Data Source=qtcdev.db"
},
"GeneralConfig": {
"CDNPath": "./user-content"
},
"Logging": {
"LogLevel": {
"Default": "Debug",

View File

@ -0,0 +1,18 @@
{
"Jwt": {
"Key": "bgpLLhY2L2UeZN3sj6WwSzScFmY3JgWfs33ZEJNcaPzC2TEnfZz",
"Issuer": "http://localhost",
"Audience": "http://localhost",
"DefaultUserRole": "User"
},
"GeneralConfig": {
"CDNPath": "./user-content"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
}