1. 新增API版本枚举SDK项,创建SDK基础控制器 2. 添加IList、string扩展方法,新增时间戳扩展工具 3. 新增OSS配置、STS凭证服务、文件处理相关代码 4. 重构Redis缓存组件,替换StackExchange.Redis为CSRedisCore 5. 修复原有Redis操作方法调用,新增基础控制器快捷返回方法 6. 新增阿里云OSS、短信、VOD相关SDK依赖 7. 配置阿里云OSS相关参数到appsettings
62 lines
1.7 KiB
JSON
62 lines
1.7 KiB
JSON
{
|
|
"ConnectionStrings": {
|
|
"DefaultConnection": "server=192.168.20.150;port=13306;database=InteractiveMagazine;user=user;password=n68792bu!y99r905;charset=utf8mb4;"
|
|
},
|
|
"JwtSettings": {
|
|
"Issuer": "QYZH.InteractiveMagazine",
|
|
"Audience": "QYZH.InteractiveMagazine",
|
|
"SecretKey": "zG7pLqR9xVw2bN8fYtHk3mPc5sA1dF6eUjW4gXhC7vB",
|
|
"ExpiryMinutes": 120
|
|
},
|
|
"RedisSettings": {
|
|
"ConnectionString": "192.168.20.150:16379,defaultDatabase=5",
|
|
"Sentinels": [],
|
|
"ExpireSecondRange": [ 3600, 7200 ]
|
|
},
|
|
"RabbitMQSettings": {
|
|
"HostName": "192.168.20.150",
|
|
"Port": 5672,
|
|
"UserName": "smartschool",
|
|
"Password": "@ss%&*otz%d*pq2S",
|
|
"VirtualHost": "InteractiveMagazine"
|
|
},
|
|
"WeChatSettings": {
|
|
"AppId": "your-wechat-appid",
|
|
"AppSecret": "your-wechat-appsecret"
|
|
},
|
|
"Serilog": {
|
|
"MinimumLevel": {
|
|
"Default": "Information",
|
|
"Override": {
|
|
"Microsoft": "Warning",
|
|
"System": "Warning"
|
|
}
|
|
},
|
|
"WriteTo": [
|
|
{
|
|
"Name": "Console"
|
|
},
|
|
{
|
|
"Name": "File",
|
|
"Args": {
|
|
"path": "logs/log-.txt",
|
|
"rollingInterval": "Day"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"AllowedHosts": "*",
|
|
"AliyunOSSConfigs": {
|
|
"AccessKeyID": "LTAI5tEBXGewpHSLiSxyx6Bf",
|
|
"AccessKeySecret": "w29b8wkw6XQVL8GWXgp3ZesgYeDKvf",
|
|
"VodBucketName": "outin-5277bbb52bec11f08dbd00163e169e2b.oss-cn-beijing.aliyuncs.com",
|
|
"BucketName": "qyzh-qb",
|
|
"Region": "beijing",
|
|
"RoleArn": "acs:ram::1064745380176636:role/aliyunosstokengeneratorrole",
|
|
"DurationSeconds": 3600, //过期时间(秒)
|
|
"Endpoint": "oss-cn-beijing.aliyuncs.com",
|
|
"ProjectName": "QuestionBank",
|
|
"Domain": "https://qyzh-qb.oss-cn-beijing.aliyuncs.com/"
|
|
}
|
|
}
|