61 lines
2.0 KiB
JSON
61 lines
2.0 KiB
JSON
{
|
||
"$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
|
||
"Logging": {
|
||
"Monitor": {
|
||
"GlobalEnabled": true
|
||
},
|
||
"LogLevel": {
|
||
"Default": "Information",
|
||
"Microsoft.AspNetCore": "Warning",
|
||
"Microsoft.EntityFrameworkCore": "Information"
|
||
}
|
||
},
|
||
"AllowedHosts": "*",
|
||
|
||
"StartUrl": "http://*:19001",
|
||
|
||
//数据库类型列表
|
||
"DbList": [ "Sqlite", "Mysql", "Sqlserver", "Oracle" ],
|
||
|
||
"DbConnOptions": {
|
||
"Url": "DataSource=yi-sqlsugar-dev.db",
|
||
"DbType": "Sqlite",
|
||
"EnabledReadWrite": false,
|
||
"EnabledCodeFirst": false,
|
||
"ReadUrl": [
|
||
"DataSource=[xxxx]", //Sqlite
|
||
"server=[xxxx];port=3306;database=[xxxx];user id=[xxxx];password=[xxxx]", //Mysql
|
||
"Data Source=[xxxx];Initial Catalog=[xxxx];User ID=[xxxx];password=[xxxx]" //Sqlserver
|
||
]
|
||
},
|
||
|
||
"EnabledDataSeed": false,
|
||
|
||
"JWTSettings": {
|
||
"ValidateIssuerSigningKey": true, // 是否验证密钥,bool 类型,默认true
|
||
"IssuerSigningKey": "123456qwerty123456qwerty", // 密钥,string 类型,必须是复杂密钥,长度大于16
|
||
"ValidateIssuer": true, // 是否验证签发方,bool 类型,默认true
|
||
"ValidIssuer": "ccnetcore", // 签发方,string 类型
|
||
"ValidateAudience": true, // 是否验证签收方,bool 类型,默认true
|
||
"ValidAudience": "ccnetcore", // 签收方,string 类型
|
||
"ValidateLifetime": true, // 是否验证过期时间,bool 类型,默认true,建议true
|
||
"ExpiredTime": 20, // 过期时间,long 类型,单位分钟,默认20分钟
|
||
"ClockSkew": 5, // 过期时间容错值,long 类型,单位秒,默认 5秒
|
||
"Algorithm": "HS256" // 加密算法,string 类型,默认 HS256
|
||
},
|
||
//阿里云短信
|
||
"SmsAliyunOptions": {
|
||
"AccessKeyId": "",
|
||
"AccessKeySecret": "",
|
||
"SignName": "",
|
||
"TemplateCode": "",
|
||
"EnableFeature": false
|
||
},
|
||
//redis缓存
|
||
"CachingConnOptions": {
|
||
"Host": "",
|
||
"DB": "",
|
||
"Prot": "",
|
||
"Password": ""
|
||
}
|
||
} |