2025-12-17 10:32:52 +08:00

143 lines
6.9 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
"SpecificationDocumentSettings": {
"DocumentTitle": "Furion | 规范化接口",
"GroupOpenApiInfos": [
{
"Group": "Default",
"Title": "后端接口",
"Description": "让 .NET 开发更简单,更通用,更流行。",
"Version": "1.0.0",
"TermsOfService": "https://furion.baiqian.ltd",
"Contact": {
"Name": "百小僧",
"Url": "https://gitee.com/monksoul",
"Email": "monksoul@outlook.com"
},
"License": {
"Name": "Apache-2.0",
"Url": "https://gitee.com/dotnetchina/Furion/blob/rc1/LICENSE"
}
}
]
},
"DynamicApiControllerSettings": {
"CamelCaseSeparator": ""
},
"CorsAccessorSettings": {
"WithExposedHeaders": [
"access-token",
"x-access-token",
"environment"
]
},
//ORM数据库连接配置 文档https://www.donet5.com/Home/Doc?typeId=1181
"DbConnection": {
"Connections": [
{
"ConfigId": 1,
//"DbType": "MySql", // MySql、SqlServer、Sqlite、Oracle、PostgreSQL、Dm、Kdbndp、Oscar、MySqlConnector、Access、OpenGauss、QuestDB、HG、ClickHouse、GBase、Odbc、Custom
//"ConnectionString": "Server=127.0.0.1;User Id=root;Password=123456;Port=3306;Database=Easy.Admin;CharSet=utf8mb4;",
"DbType": "Sqlite", // MySql、SqlServer、Sqlite、Oracle、PostgreSQL、Dm、Kdbndp、Oscar、MySqlConnector、Access、OpenGauss、QuestDB、HG、ClickHouse、GBase、Odbc、Custom
"ConnectionString": "DataSource=easy.admin.sqlite",
"IsAutoCloseConnection": true,
"EnableInitDb": false // 启用数据库以及数据表初始化(首次运行项目时开启可以自动创建数据库和初始化项目运行的基础数据)
}
]
},
//缓存配置 文档https://easycaching.readthedocs.io/en/latest/
"easycaching": {
"csredis": {
"MaxRdSecond": 120,
"EnableLogging": false,
"LockMs": 5000,
"SleepMs": 300,
"dbconfig": {
"ConnectionStrings": [
"127.0.0.1:6379,password=123456,defaultDatabase=0,poolsize=7"
],
//"Sentinels": [
// "192.169.1.10:26379",
// "192.169.1.11:26379",
// "192.169.1.12:26379"
//],
"ReadOnly": false
}
},
"inmemory": {
"MaxRdSecond": 120,
"EnableLogging": false,
"LockMs": 5000,
"SleepMs": 300,
"DBConfig": {
"SizeLimit": 10000,
"ExpirationScanFrequency": 60,
"EnableReadDeepClone": true,
"EnableWriteDeepClone": false
}
},
"type": "inmemory" //使用缓存类型
},
//对象存储配置 文档https://github.com/oncemi/OnceMi.AspNetCore.OSS
"OssConnection": {
"Enable": false, //是否启用对象存储(不启用将存储至站点目录)
"Provider": "Minio", //OSS提供者允许值Minio/Aliyun/QCloud/Qiniu/HuaweiCloud/Invalid代表附件存储到当前站点下
"Endpoint": "192.168.1.123:9000", //节点
"AccessKey": "test", //Key
"SecretKey": "12324565", //秘钥
//"Region": "ap-chengdu",//地域
"IsEnableHttps": false, //是否启用HTTPS
"IsEnableCache": true, //是否启用缓存(启用后将缓存签名URL以减少请求次数)
"Bucket": "oss", //默认存储根目录
"Domain": "https://oss.okay123.top" //外网访问域名或IP
},
// 接入第三方授权登录 文档https://github.com/mrhuo/MrHuo.OAuth
// QQ授权申请地址https://connect.qq.com/
"oauth": {
"qq": {
"app_id": "你的app_id",
"app_key": "你的key",
"redirect_uri": "https://你的域名/api/oauth/qq/callback",
"scope": "get_user_info"
}
},
// 雪花id 文档https://github.com/yitter/IdGenerator
"SnowId": {
"Method": 1, //雪花计算方法1-漂移算法|2-传统算法默认1
"BaseTime": "2023-01-01 08:00:00", //不能超过当前系统时间
"WorkerId": 0, //机器码, 最大值 2^WorkerIdBitLength-1
"WorkerIdBitLength": 6, // 机器码位长 , 默认值6取值范围 [1, 15](要求:序列数位长+机器码位长不超过22
"SeqBitLength": 6, //序列数位长,默认值6取值范围 [3, 21](要求:序列数位长+机器码位长不超过22
"MaxSeqNumber": 0, //最大序列数(含),设置范围 [MinSeqNumber, 2^SeqBitLength-1]默认值0表示最大序列数取最大值2^SeqBitLength-1]
"MinSeqNumber": 5, //最小序列数(含),默认值5取值范围 [5, MaxSeqNumber]每毫秒的前5个序列数对应编号0-4是保留位其中1-4是时间回拨相应预留位0是手工新值预留位
"TopOverCostCount": 2000, //最大漂移次数默认2000推荐范围500-10000与计算能力有关
"DataCenterId": 0, //数据中心ID默认0,每台服务器需要设置不同值
"DataCenterIdBitLength": 0, //数据中心ID默认0
"TimestampType": 0 //时间戳类型0-毫秒1-秒默认0
},
// 日志配置
"Logging": {
"Monitor": {
"GlobalEnabled": true, // 是否启用全局拦截,默认 `false`
"IncludeOfMethods": [], // 是否指定拦截特定方法,当 GlobalEnabled: false 有效
"ExcludeOfMethods": [], // 是否指定排除特定方法,当 GlobalEnabled: true 有效
"BahLogLevel": "Information", // 配置 Oops.Oh 和 Oops.Bah 业务日志输出级别,默认 Information
"WithReturnValue": true, // 配置是否包含返回值,默认 `true`Furion 4.3.9+ 有效
"ReturnValueThreshold": 0, // 配置返回值字符串阈值,默认 0全量输出Furion 4.3.9+ 有效
"JsonBehavior": "None", // 配置 LoggingMonitor Json 输出行为,默认 NoneFurion 4.5.2+ 有效
"JsonIndented": false, // 配置 LoggingMonitor Json 格式化行为,默认 falseFurion 4.8.2+ 有效
"ContractResolver": "CamelCase" // 配置 LoggingMonitor 序列化属性命名规则,默认 CamelCaseFurion 4.8.6.12+ 有效
//"MethodsSettings": [
// // 配置被监视方法更多信息Furion 4.3.9+ 有效
// {
// "FullName": "Furion.Application.TestLoggerServices.MethodName", // 方法完全限定名
// "WithReturnValue": true, // 配置是否包含返回值,默认 `true`Furion 4.3.9+ 有效
// "ReturnValueThreshold": 0, // 配置返回值字符串阈值,默认 0全量输出Furion 4.3.9+ 有效
// "JsonIndented": false, // 配置 LoggingMonitor Json 格式化行为,默认 falseFurion 4.8.2+ 有效
// "JsonBehavior": "None", // 配置 LoggingMonitor Json 输出行为,默认 NoneFurion 4.5.2+ 有效
// "ContractResolver": "CamelCase" // 配置 LoggingMonitor 序列化属性命名规则,默认 CamelCaseFurion 4.8.6.12+ 有效
// }
//]
}
}
}