diff --git a/Aurora.HttpRepots/appsettings.json b/Aurora.HttpRepots/appsettings.json index d9d9a9bff6fd6f3ee7ea00de958f135a4a28c6e6..5cecb5b66a54f9136b72b3a3c9c66b7392b9ac8d 100644 --- a/Aurora.HttpRepots/appsettings.json +++ b/Aurora.HttpRepots/appsettings.json @@ -6,5 +6,28 @@ "Microsoft.Hosting.Lifetime": "Information" } }, + "HttpReportsDashboard": { + "ExpireDay": 3, + "Storage": { + //"ConnectionString": "DataBase=HttpReports;Data Source=localhost;User Id=root;Password=123456;", + "ConnectionString": "Server=xx.xx.xx.xx; Port=3306;User Id=httpreportsuser;Password=httpreports123456;Database=HttpReports;Allow User Variables=True", + "DeferSecond": 10, + "DeferThreshold": 100 + }, + "Check": { + "Mode": "Self", + "Switch": true, + "Endpoint": "", + "Range": "500,2000" + }, + "Mail": { + "Server": "smtp.163.com", + "Port": 465, + "Account": "HttpReports@qq.com", + "Password": "*******", + "EnableSsL": true, + "Switch": true + } + }, "AllowedHosts": "*" } diff --git a/Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/appsettings.json b/Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/appsettings.json index 83c7193598abf5a29514526dfbe03353d8ae6b09..9568a3f6701e41288397da1a749c4eb2314f69ab 100644 --- a/Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/appsettings.json +++ b/Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/appsettings.json @@ -28,5 +28,20 @@ "SqlServer": "Data Source=192.168.1.139;Initial Catalog=PTS2;User ID=sa;Password=;Encrypt=False;TrustServerCertificate=False;Pooling=true;max Pool Size=50;min Pool Size=1;MultipleActiveResultSets=True", "PostgreSql": "Server=localhost;Database=Simon_blog;User ID=xxxxxx;Password=666", "Sqlite": "Data Source=D:/xxx.db;" + }, + "HttpReports": { + "Transport": { + "CollectorAddress": "http://localhost:7000/", + "DeferSecond": 10, + "DeferThreshold": 100 + }, + "Server": "http://localhost:5000", + "Service": "User", + "Switch": true, + "RequestFilter": [ "/api/health/*", "/HttpReports*" ], + "WithRequest": true, + "WithResponse": true, + "WithCookie": true, + "WithHeader": true } } \ No newline at end of file