{ "Logging": { "LogLevel": { "Default": "Information", "Microsoft.AspNetCore": "Warning" } }, "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@1234" }, "ConnectionStrings": { "LiveForumConnection": "data source=192.168.195.15;User Id=sa;Password=Dbt@com@123;MultipleActiveResultSets=False;Encrypt=False;initial catalog=LiveForumDB;pooling=true;max pool size=100" }, "Redis": { "Configuration": "192.168.195.15:6379,defaultDatabase=2", "InstanceName": "LiveForum:" }, "JwtTokenConfig": { "secret": "2C9AF5B22C94DB24A4FEB26BBF01C9AB", "issuer": "LiveForum", "audience": "MP", "accessTokenExpiration": 120 }, "Serilog": { "Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File" ], "MinimumLevel": { "Default": "Information", "Override": { "Microsoft": "Warning", "System": "Warning" } }, "WriteTo": [ { "Name": "Console" }, { "Name": "File", "Args": { "path": "../logs/info/log-.txt", "rollingInterval": "Day", "restrictedToMinimumLevel": "Information", //写入日志的级别 "shared": true //"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}" } }, { "Name": "File", "Args": { "path": "../logs/error/log-.txt", "rollingInterval": "Day", //日志文件按天滚动生成。 "restrictedToMinimumLevel": "Error", //写入日志的级别 //包括 Verbose、Debug、Information、Warning、Error 和 Fatal "shared": true //不占用文件 // "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}" } }, { "Name": "File", "Args": { "path": "../logs/debug/log-.txt", "rollingInterval": "Day", //日志文件按天滚动生成。 "restrictedToMinimumLevel": "Debug", //写入日志的级别 //包括 Verbose、Debug、Information、Warning、Error 和 Fatal "shared": true //不占用文件 // "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}" } } ], "Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ] }, "Wechat": { "AppId": "wx34e8a031d0d78b81", "AppSecret": "5bb35c58d2d769fda808ca5afc1bd34d", "Token": "", "EncodingAESKey": "" }, //腾讯云COS存储配置 "TENCENT_COS": { "AppId": "1308826010", "Region": "ap-shanghai", //eg:ap-beijing "SecretId": "AKIDVyMfzKZdZP8zkNyOdsFuSsBJDB7EScs0", "SecretKey": "89GWr7JPWYTL8ueHlAYowGZnvzKZjqs9", "BucketName": "miaoyu", "DomainUrl": "https://miaoyu-1308826010.cos.ap-shanghai.myqcloud.com", //访问资源域名 "MaxSize": 100, //上传文件大小限制 100M "DurationSecond": 600, //签名有效期(秒) "Prefixes": "file" //路径前缀 }, //敏感词检测配置 "SensitiveWord": { // 词库路径(支持相对路径和绝对路径) // 相对路径示例:"../../../后端/API/违规词集成/词库" 或 "SensitiveWords" // 绝对路径示例:"D:\\CodeManage\\live-forum\\后端\\API\\违规词集成\\词库" "IsFilterEnabled": true, // 总开关:是否开启敏感词过滤功能(关闭后不加载任何词库,不进行过滤) "IsBasicDictFilterEnabled": true, // 文件词库开关:是否开启文件词库敏感词过滤(关闭后不加载和使用文件词库) "IsDbFilterEnabled": true, // 数据库词库开关:是否开启数据库敏感词过滤(关闭后不加载和使用数据库词库) "CommonWordsPath": "wwwroot/sensitivewords", "Mode": "Filter", // Filter=替换为*, Reject=拒绝发布 "ReplaceChar": "*", "CacheExpiration": 86400, // Redis缓存过期时间(秒) "CacheKey": "SensitiveWords:Industry" }, "AllowedHosts": "*", //服务器配置 "Kestrel": { "Endpoints": { "Http": { "Url": "http://*:8080" } } }, "AppConfig": { "AppIcon": "https://miaoyu-1308826010.cos.ap-shanghai.myqcloud.com/2025/1128/f235612b2ad0c385.png", "AppPostEssenceIcon": "https://miaoyu-1308826010.cos.ap-shanghai.myqcloud.com/2025/1128/67473625e002e217.png", "MeVIPBg": "", // "CertificationsVideoUrl": "", "FlowerSendInterval": "3600", "upload_config": { "cosdomain": "https://miaoyu-1308826010.cos.ap-shanghai.myqcloud.com", "imagemaxsize": "10240", "imagequality": "80", "videomaxsize": "102400" }, "uploadServiceType": "cos" }, "AppSettings": { "UserDefaultIcon": "", //用户默认头像 "UserDefaultName": "" //用户默认昵称 } }