{
|
"$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
|
"Logging": {
|
"LogLevel": {
|
"Default": "Information",
|
"Microsoft.AspNetCore": "Warning",
|
"Microsoft.EntityFrameworkCore": "Information"
|
}
|
},
|
"AllowedHosts": "*",
|
"ConnectionConfigs": [
|
{
|
|
"ConfigId": "default", //多库配置ID
|
"ConnectionString": "Server=.;Database=CY_DocumentSystemOnline;User ID=sa;Password=123456;",
|
"DbType": "SqlServer",
|
"IsAutoCloseConnection": true
|
|
|
},
|
{
|
|
"ConfigId": "zhengcaioa", //多库配置ID
|
"ConnectionString": "Server=.;Database=zhengcaioa55;User ID=sa;Password=123456;",
|
"DbType": "SqlServer",
|
"IsAutoCloseConnection": true
|
|
|
}
|
],
|
|
"isCodeFirst": false, //是否执行codefirst 注意这个在迁徙完成后应该设置为false 防止更改数据库
|
//请保持redis为正常可用
|
"RedisConfig": {
|
// 如果采用容器化部署Service 要写成redis的服务名,否则写地址
|
"ConnectionString": "127.0.0.1:6379,password=,connectTimeout=30000,responseTimeout=30000,abortConnect=false,connectRetry=1,syncTimeout=10000,DefaultDatabase=10" //redis数据库连接字符串
|
|
},
|
|
|
|
|
"JWTSettings": {
|
"ValidateIssuerSigningKey": true, // 是否验证密钥,bool 类型,默认true
|
"IssuerSigningKey": "129(*dasd09213)*(*jKDl", // 密钥,string 类型,必须是复杂密钥,长度大于16
|
"ValidateIssuer": true, // 是否验证签发方,bool 类型,默认true
|
"ValidIssuer": "www.51zhengcai.com", // 签发方,string 类型
|
"ValidateAudience": true, // 是否验证签收方,bool 类型,默认true
|
"ValidAudience": "www.51zhengcai.com", // 签收方,string 类型
|
"ValidateLifetime": true, // 是否验证过期时间,bool 类型,默认true,建议true
|
"ExpiredTime": 1440, // 过期时间,long 类型,单位分钟,默认20分钟
|
"ClockSkew": 5, // 过期时间容错值,long 类型,单位秒,默认 5秒
|
"Algorithm": "HS256" // 加密算法,string 类型,默认 HS256
|
}
|
|
}
|