|
|
@ -23,12 +23,18 @@
|
|
|
|
"AllowedHosts": "*",
|
|
|
|
"AllowedHosts": "*",
|
|
|
|
",": null,
|
|
|
|
",": null,
|
|
|
|
"Cryptogram": {
|
|
|
|
"Cryptogram": {
|
|
|
|
"StrongPassword": "false", // 是否开启密码强度验证
|
|
|
|
"StrongPassword": "false",
|
|
|
|
"PasswordStrengthValidation": "(?=^.{6,16}$)(?=.*\\d)(?=.*\\W+)(?=.*[A-Z])(?=.*[a-z])(?!.*\\n).*$", // 密码强度验证正则表达式,必须须包含大小写字母、数字和特殊字符的组合,长度在6-16之间
|
|
|
|
// 是否开启密码强度验证
|
|
|
|
"PasswordStrengthValidationMsg": "密码必须包含大小写字母、数字和特殊字符的组合,长度在6-16之间", // 密码强度验证消息提示
|
|
|
|
"PasswordStrengthValidation": "(?=^.{6,16}$)(?=.*\\d)(?=.*\\W+)(?=.*[A-Z])(?=.*[a-z])(?!.*\\n).*$",
|
|
|
|
"CryptoType": "SM2", // 密码加密算法:MD5、SM2、SM4
|
|
|
|
// 密码强度验证正则表达式,必须须包含大小写字母、数字和特殊字符的组合,长度在6-16之间
|
|
|
|
"PublicKey": "0484C7466D950E120E5ECE5DD85D0C90EAA85081A3A2BD7C57AE6DC822EFCCBD66620C67B0103FC8DD280E36C3B282977B722AAEC3C56518EDCEBAFB72C5A05312", // 公钥
|
|
|
|
"PasswordStrengthValidationMsg": "密码必须包含大小写字母、数字和特殊字符的组合,长度在6-16之间",
|
|
|
|
"PrivateKey": "8EDB615B1D48B8BE188FC0F18EC08A41DF50EA731FA28BF409E6552809E3A111" // 私钥
|
|
|
|
// 密码强度验证消息提示
|
|
|
|
|
|
|
|
"CryptoType": "SM2",
|
|
|
|
|
|
|
|
// 密码加密算法:MD5、SM2、SM4
|
|
|
|
|
|
|
|
"PublicKey": "0484C7466D950E120E5ECE5DD85D0C90EAA85081A3A2BD7C57AE6DC822EFCCBD66620C67B0103FC8DD280E36C3B282977B722AAEC3C56518EDCEBAFB72C5A05312",
|
|
|
|
|
|
|
|
// 公钥
|
|
|
|
|
|
|
|
"PrivateKey": "8EDB615B1D48B8BE188FC0F18EC08A41DF50EA731FA28BF409E6552809E3A111"
|
|
|
|
|
|
|
|
// 私钥
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//Login
|
|
|
|
//Login
|
|
|
|
"TokenOptions": {
|
|
|
|
"TokenOptions": {
|
|
|
@ -38,34 +44,62 @@
|
|
|
|
"Issuer": "jwtIssuer"
|
|
|
|
"Issuer": "jwtIssuer"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"Upload": {
|
|
|
|
"Upload": {
|
|
|
|
"Path": "Upload/{yyyy}/{MM}/{dd}", // 文件上传目录
|
|
|
|
"Path": "Upload/{yyyy}/{MM}/{dd}",
|
|
|
|
"MaxSize": 20480, // 文件最大限制KB:1024*20
|
|
|
|
// 文件上传目录
|
|
|
|
"ContentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif", "image/bmp", "text/plain", "application/pdf", "application/msword", "application/vnd.ms-excel", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "video/mp4" ],
|
|
|
|
"MaxSize": 20480,
|
|
|
|
"EnableMd5": false // 启用文件MDF5验证-防止重复上传
|
|
|
|
// 文件最大限制KB:1024*20
|
|
|
|
|
|
|
|
"ContentType": [
|
|
|
|
|
|
|
|
"image/jpg",
|
|
|
|
|
|
|
|
"image/png",
|
|
|
|
|
|
|
|
"image/jpeg",
|
|
|
|
|
|
|
|
"image/gif",
|
|
|
|
|
|
|
|
"image/bmp",
|
|
|
|
|
|
|
|
"text/plain",
|
|
|
|
|
|
|
|
"application/pdf",
|
|
|
|
|
|
|
|
"application/msword",
|
|
|
|
|
|
|
|
"application/vnd.ms-excel",
|
|
|
|
|
|
|
|
"application/vnd.ms-powerpoint",
|
|
|
|
|
|
|
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
|
|
|
|
|
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
|
|
|
|
|
|
"video/mp4"
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
"EnableMd5": false
|
|
|
|
|
|
|
|
// 启用文件MDF5验证-防止重复上传
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//SysLogin
|
|
|
|
//SysLogin
|
|
|
|
"JWTSettings": {
|
|
|
|
"JWTSettings": {
|
|
|
|
"ValidateIssuerSigningKey": true, // 是否验证密钥,bool 类型,默认true
|
|
|
|
"ValidateIssuerSigningKey": true,
|
|
|
|
"IssuerSigningKey": "3c1cbc3f546eda35168c3aa3cb91780fbe703f0996c6d123ea96dc85c70bbc0a", // 密钥,string 类型,必须是复杂密钥,长度大于16
|
|
|
|
// 是否验证密钥,bool 类型,默认true
|
|
|
|
"ValidateIssuer": true, // 是否验证签发方,bool 类型,默认true
|
|
|
|
"IssuerSigningKey": "3c1cbc3f546eda35168c3aa3cb91780fbe703f0996c6d123ea96dc85c70bbc0a",
|
|
|
|
"ValidIssuer": "Admin.NET", // 签发方,string 类型
|
|
|
|
// 密钥,string 类型,必须是复杂密钥,长度大于16
|
|
|
|
"ValidateAudience": true, // 是否验证签收方,bool 类型,默认true
|
|
|
|
"ValidateIssuer": true,
|
|
|
|
"ValidAudience": "Admin.NET", // 签收方,string 类型
|
|
|
|
// 是否验证签发方,bool 类型,默认true
|
|
|
|
"ValidateLifetime": true, // 是否验证过期时间,bool 类型,默认true,建议true
|
|
|
|
"ValidIssuer": "Admin.NET",
|
|
|
|
|
|
|
|
// 签发方,string 类型
|
|
|
|
|
|
|
|
"ValidateAudience": true,
|
|
|
|
|
|
|
|
// 是否验证签收方,bool 类型,默认true
|
|
|
|
|
|
|
|
"ValidAudience": "Admin.NET",
|
|
|
|
|
|
|
|
// 签收方,string 类型
|
|
|
|
|
|
|
|
"ValidateLifetime": true,
|
|
|
|
|
|
|
|
// 是否验证过期时间,bool 类型,默认true,建议true
|
|
|
|
//"ExpiredTime": 20, // 过期时间,long 类型,单位分钟,默认20分钟,最大支持 13 年
|
|
|
|
//"ExpiredTime": 20, // 过期时间,long 类型,单位分钟,默认20分钟,最大支持 13 年
|
|
|
|
"ClockSkew": 5, // 过期时间容错值,long 类型,单位秒,默认5秒
|
|
|
|
"ClockSkew": 5,
|
|
|
|
"Algorithm": "HS256", // 加密算法,string 类型,默认 HS256
|
|
|
|
// 过期时间容错值,long 类型,单位秒,默认5秒
|
|
|
|
"RequireExpirationTime": true // 验证过期时间,设置 false 将永不过期
|
|
|
|
"Algorithm": "HS256",
|
|
|
|
|
|
|
|
// 加密算法,string 类型,默认 HS256
|
|
|
|
|
|
|
|
"RequireExpirationTime": true
|
|
|
|
|
|
|
|
// 验证过期时间,设置 false 将永不过期
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"SnowId": {
|
|
|
|
"SnowId": {
|
|
|
|
"WorkerId": 1, // 机器码 全局唯一
|
|
|
|
"WorkerId": 1,
|
|
|
|
"WorkerIdBitLength": 6, // 机器码位长 默认值6,取值范围 [1, 19]
|
|
|
|
// 机器码 全局唯一
|
|
|
|
"SeqBitLength": 6, // 序列数位长 默认值6,取值范围 [3, 21](建议不小于4,值越大性能越高、Id位数也更长)
|
|
|
|
"WorkerIdBitLength": 6,
|
|
|
|
"WorkerPrefix": "adminnet_" // 缓存前缀
|
|
|
|
// 机器码位长 默认值6,取值范围 [1, 19]
|
|
|
|
|
|
|
|
"SeqBitLength": 6,
|
|
|
|
|
|
|
|
// 序列数位长 默认值6,取值范围 [3, 21](建议不小于4,值越大性能越高、Id位数也更长)
|
|
|
|
|
|
|
|
"WorkerPrefix": "adminnet_"
|
|
|
|
|
|
|
|
// 缓存前缀
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
"HttpContextRequest": {
|
|
|
|
"HttpContextRequest": {
|
|
|
|
"Scheme": ""
|
|
|
|
"Scheme": ""
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -88,7 +122,7 @@
|
|
|
|
"task": {
|
|
|
|
"task": {
|
|
|
|
"enable": false
|
|
|
|
"enable": false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"Log": {
|
|
|
|
"Log": {
|
|
|
|
"Src": "D:\\RiderProjects\\hn_back_charger\\WebStarter\\bin\\Debug\\net6.0\\logs",
|
|
|
|
"Src": "D:\\RiderProjects\\hn_back_charger\\WebStarter\\bin\\Debug\\net6.0\\logs",
|
|
|
|
"Dest": "D:\\zip",
|
|
|
|
"Dest": "D:\\zip",
|
|
|
|
"Days": 7
|
|
|
|
"Days": 7
|
|
|
|