{ "ConnectionStrings": { "MiaoYu_SqlServer_Db": "Server=192.168.195.2;Database=MiaoYu;User Id=zpc;Password=zpc;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;" }, "Logging": { "LogLevel": { "Default": "Information", "Microsoft.AspNetCore": "Warning" } }, "Serilog": { "Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File" ], "MinimumLevel": { "Default": "Information", "Override": { "Microsoft": "Warning", "System": "Warning" } }, "WriteTo": [ { "Name": "Console" }, { "Name": "File", "Args": { "path": "../output/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": "../output/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": "../output/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" ] }, "AllowedHosts": "*", //腾讯云配置 "TencentCloud": { "SecretId": "AKIDLbhdP0Vs57yd7QZWu8A2jFbno8JKBUp6", "SecretKey": "MlP5tcUG6mdj7TwOpDWnZNFGIrJY8eH4", "SMSCode": { //请求方式 "ReqMethod": "POST", //超时时间 "Timeout": 30, //短信应用ID: "SmsSdkAppId": "1400923253", //签名 "SignName": "上海寰梦科技发展", //模板编号 "TemplateId": "2209122" } }, "JwtTokenConfig": { //加密字段 "secret": "XtrtwJIcxRHWInEMsCyUdwcRKLNHHAcQ", //发行人 "issuer": "HuanMeng", //受众 "audience": "HuanMengApp", //token时间,分钟 "accessTokenExpiration": 10080, //刷新token时间.分钟 "refreshTokenExpiration": 10100 }, "SystemConfig": { "DictionaryUrl": "https://adminapi.shhuanmeng.com/api/v1/admin/SysDictionary/GetList", "TextCensorDir": "DataStorage/TextCensor/" }, "AgileConfig": { "appId": "huanmeng", "secret": "dfa47997-fb5c-b644-3770-880f5e7fb403", "nodes": "http://10.0.12.5:94", //多个节点使用逗号分隔 "env": "PROD" }, //服务器配置 "Kestrel": { "Endpoints": { "Http": { "Url": "http://*:90" } } } }