YD_Event.Admin/YD_Event.Application/applicationsettings.json

160 lines
7.5 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": "规范化接口",
"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=YD_Event;CharSet=utf8mb4;",
"DbType": "SqlServer", // MySql、SqlServer、Sqlite、Oracle、PostgreSQL、Dm、Kdbndp、Oscar、MySqlConnector、Access、OpenGauss、QuestDB、HG、ClickHouse、GBase、Odbc、Custom
"ConnectionString": "Data Source=rm-uf64b8oxdt19pfyxfao.sqlserver.rds.aliyuncs.com;Database=EventServerDB_QA;User ID=qa;Password=Admin@123;Connect Timeout=500;Encrypt=True;TrustServerCertificate=True;",
"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"
}
},
// 微信小程序配置
"WeChat": {
"AppId": "wx1234567890abcdef",
"Secret": "1234567890abcdef1234567890abcdef"
},
// 雪花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 输出行为,默认 None,Furion 4.5.2+ 有效
"JsonIndented": false, // 配置 LoggingMonitor Json 格式化行为,默认 false,Furion 4.8.2+ 有效
"ContractResolver": "CamelCase" // 配置 LoggingMonitor 序列化属性命名规则,默认 CamelCase,Furion 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 格式化行为,默认 false,Furion 4.8.2+ 有效
// "JsonBehavior": "None", // 配置 LoggingMonitor Json 输出行为,默认 None,Furion 4.5.2+ 有效
// "ContractResolver": "CamelCase" // 配置 LoggingMonitor 序列化属性命名规则,默认 CamelCase,Furion 4.8.6.12+ 有效
// }
//]
}
},
// 阿里云短信配置
"ALiYunSMS": {
"Endpoint": "dysmsapi.aliyuncs.com",
"Sign": "oVpeH1PpDUnWTcBrUSSYkQNS4Fex8Y",
"Template": "SMS_254100608"
},
// 阿里云ORC识别
"AliyunOCR": {
"AccessKeyId": "AccessKeyId",
"AccessKeySecret": "AccessKeySecret",
"Endpoint": "ocr.cn-shanghai.aliyuncs.com"
}
}