mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-07-12 16:03:27 +08:00
feat(initializer): update default configurations and introduce dynamic JWT key
This commit is contained in:
@@ -38,7 +38,7 @@ public class DatabaseInitializer(
|
|||||||
var defaultConfigs = new Dictionary<string, string>
|
var defaultConfigs = new Dictionary<string, string>
|
||||||
{
|
{
|
||||||
// JWT配置
|
// JWT配置
|
||||||
["Jwt:SecretKey"] = "ChAtPiCdEfAuLtSeCrEtKeY2023_Extended_Secure_Key",
|
["Jwt:SecretKey"] = Guid.NewGuid().ToString("N") + Guid.NewGuid().ToString("N"),
|
||||||
["Jwt:Issuer"] = "Foxel",
|
["Jwt:Issuer"] = "Foxel",
|
||||||
["Jwt:Audience"] = "FoxelUsers",
|
["Jwt:Audience"] = "FoxelUsers",
|
||||||
|
|
||||||
@@ -64,7 +64,8 @@ public class DatabaseInitializer(
|
|||||||
["Storage:DefaultStorage"] = "Local",
|
["Storage:DefaultStorage"] = "Local",
|
||||||
|
|
||||||
// 其他配置
|
// 其他配置
|
||||||
["AppSettings:ServerUrl"] = ""
|
["AppSettings:ServerUrl"] = "",
|
||||||
|
["VectorDb:Type"] = "InMemory"
|
||||||
};
|
};
|
||||||
|
|
||||||
foreach (var (key, value) in defaultConfigs)
|
foreach (var (key, value) in defaultConfigs)
|
||||||
|
|||||||
Reference in New Issue
Block a user