live-forum/server/admin/ZrAdminNetCore/ZR.Admin.WebApi/appsettings.json
zpc c227256015
All checks were successful
continuous-integration/drone/push Build is passing
feat(liveforum): add WebAPI Redis cache management for streamer flower counts
- Add WebApiCache Redis client instance to RedisServer for separate cache storage
- Configure WebApiCache in appsettings.json with dedicated database (db=2)
- Add ClearAllFlowerCache() method to IT_StreamersService interface and implementation
- Add clear-flower-cache endpoint in T_StreamersController with permission and logging
- Update flower cache operations to use WebApiCache instead of main Cache instance
- Migrate existing cache clear logic in UpdateStreamer and BatchSetFlowerCount to use WebApiCache
- Add clearFlowerCache API function to frontend tstreamers.js
- Add clear cache button to tstreamers.vue UI for manual cache management
- Improves cache isolation between admin and WebAPI services, enabling independent cache lifecycle management
2026-04-01 18:28:28 +08:00

147 lines
5.5 KiB
JSON
Raw Permalink 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.

{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"dbConfigs": [
{
"Conn": "Data Source=192.168.195.15;User ID=sa;Password=Dbt@com@123;Initial Catalog=zradmindb;Encrypt=True;TrustServerCertificate=True;MultipleActiveResultSets=True;",
"DbType": 1, //数据库类型 MySql = 0, SqlServer = 1, Oracle = 3PgSql = 4
"ConfigId": "0", //多租户唯一标识
"IsAutoCloseConnection": true
},
{
"Conn": "Data Source=192.168.195.15;User ID=sa;Password=Dbt@com@123;Initial Catalog=LiveForumDB;Encrypt=True;TrustServerCertificate=True;MultipleActiveResultSets=True;",
"DbType": 1,
"ConfigId": "liveforum", //论坛数据库
"IsAutoCloseConnection": true
}
//...下面添加更多的数据库源
],
//代码生成数据库配置
"CodeGenDbConfig": {
//代码生成连接字符串,注意{dbName}为固定格式,不要填写数据库名
"Conn": "Data Source=192.168.195.15;User ID=sa;Password=Dbt@com@123;Initial Catalog={dbName};Encrypt=True;TrustServerCertificate=True;",
"DbType": 1,
"IsAutoCloseConnection": true,
"DbName": "zradmindb" //代码生成默认连接数据库,Oracle库是实例的名称
},
"urls": "http://*:8888", //项目启动url如果改动端口前端对应devServer也需要进行修改
"corsUrls": [ "http://localhost:8887", "http://localhost:8886", "chrome-extension://anaplcmaailooghppbkkbhpgepjdficm" ], //跨域地址(前端启动项目,前后端分离单独部署需要设置),多个用","隔开
"JwtSettings": {
"Issuer": "ZRAdmin.NET", //即token的签发者。
"Audience": "ZRAdmin.NET", //指该token是服务于哪个群体的群体范围
"SecretKey": "SecretKey-ZRADMIN.NET-202311281883838",
"Expire": 1440, //jwt登录过期时间
"RefreshTokenTime": 30, //分钟
"TokenType": "Bearer"
},
"MainDb": "0", // 多租户主库配置ID
"UseTenant": 0, //是否启用多租户 0:不启用 1:启用
"InjectClass": [ "ZR.Repository", "ZR.Service", "ZR.Tasks", "ZR.ServiceCore","ZR.LiveForum" ], //自动注入类
"ShowDbLog": true, //是否打印db日志
"InitDb": false, //是否初始化db
"DemoMode": false, //是否演示模式
"SingleLogin": false, //是否允许多设备/浏览器登录
"workId": 1, //雪花id唯一数字
"sqlExecutionTime": 5, //Sql执行时间超过多少秒记录日志并警报
"Upload": {
"uploadUrl": "http://localhost:8888", //本地存储资源访问路径
"localSavePath": "", //本地上传默认文件存储目录 wwwroot
"maxSize": 15, //上传文件大小限制 15M
"notAllowedExt": [ ".bat", ".exe", ".jar", ".js" ],
"requestLimitSize": 50 //请求body大小限制
},
//阿里云存储配置
"ALIYUN_OSS": {
"REGIONID": "", //egcn-hangzhou
"KEY": "XX",
"SECRET": "XX",
"bucketName": "bucketName",
"domainUrl": "http://xxx.xxx.com", //访问资源域名
"maxSize": 100 //上传文件大小限制 100M
},
//腾讯云COS存储配置
"TENCENT_COS": {
"AppId": "1377391978",
"BucketName": "skzjmp",
"DomainUrl": "https://skzjmp-1377391978.cos.ap-nanjing.myqcloud.com",
"DurationSecond": "600",
"MaxSize": "100",
"Prefixes": "file",
"Region": "ap-nanjing",
"SecretId": "AKIDCLPMBsQp7IJD7sXK1WvPrFh4Uq49FC0e",
"SecretKey": "VoxynRvGPNAnFVaVFxTo00pTzKVWM1Vn"
},
//企业微信通知配置
"WxCorp": {
"AgentID": "",
"CorpID": "",
"CorpSecret": "",
"SendUser": "@all"
},
//微信公众号设置
"WxOpen": {
"AppID": "",
"AppSecret": ""
},
//邮箱配置信息
"MailOptions": [
{
//发件人名称(请保证数组里面唯一)
"FromName": "system",
//发送人邮箱
"FromEmail": "", //egxxxx@qq.com
//发送人邮箱密码
"Password": "",
//协议
"Smtp": "smtp.qq.com",
"Port": 587,
"Signature": "系统邮件,请勿回复!",
"UseSsl": true
}
],
//redis服务配置
"RedisServer": {
"open": 1, //是否启用redis
"dbCache": false, //数据库是否使用Redis缓存如果启用open要为1
"Cache": "192.168.195.15:6379,defaultDatabase=6,poolsize=50,ssl=false,writeBuffer=10240,prefix=cache:",
"Session": "192.168.195.15:6379,defaultDatabase=7,poolsize=50,ssl=false,writeBuffer=10240,prefix=session:",
"WebApiCache": "192.168.195.15:6379,defaultDatabase=2,poolsize=10,ssl=false,writeBuffer=10240"
},
//验证码配置
"CaptchaOptions": {
"IgnoreCase": true // 比较时是否忽略大小写
},
//代码生成配置
"CodeGen": {
//uniapp 版本号2/3(vue版本号)
"uniappVersion": 3,
//是否显示移动端代码生成
"showApp": true,
//自动去除表前缀
"autoPre": false,
//默认生成业务模块名
"moduleName": "liveforum",
"author": "admin",
"tablePrefix": "sys_", //"表前缀(生成类名不会包含表前缀,多个用逗号分隔)",
"vuePath": "ZR.Vue", //前端代码存储路径egD:\Work\ZRAdmin-Vue3
"uniappPath": "D:\\Work" //h5前端代码存储路径
},
"AgileConfig": {
"appId": "liveforum",
"secret": "AD37B86C9A954A613B661E74F88FB8A5",
"nodes": "http://192.168.195.15:1100", //多个节点使用逗号分隔
"url": "http://192.168.195.15:1100",
"env": "DEV",
"UserName": "admin",
"Password": "Dbt@com@123"
},
"LiveForumApi": {
"BaseUrl": "http://192.168.195.15:8080"
}
}