Compare commits
2 Commits
198a8635ab
...
daceab9c12
Author | SHA1 | Date | |
---|---|---|---|
daceab9c12 | |||
75dbfa9c03 |
@ -37,7 +37,7 @@ builder.Services.AddDbContext<DataContext>(options =>
|
|||||||
return;
|
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"));
|
else options.UseSqlite(builder.Configuration.GetConnectionString("DevelopmentConnection"));
|
||||||
|
|
||||||
// ignore pending model changes warning
|
// ignore pending model changes warning
|
||||||
|
@ -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": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"Default": "Debug",
|
"Default": "Debug",
|
||||||
|
18
qtc-net-server/appsettings.json
Normal file
18
qtc-net-server/appsettings.json
Normal 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": "*"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user