You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

206 lines
6.4 KiB
JSON

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{
"AllowedHosts": "*",
"Logging": {
"LogLevel": {
"Default": "Information", //<2F><><EFBFBD><EFBFBD>Default<6C><74><EFBFBD><EFBFBD>log4net<65><74><EFBFBD><EFBFBD>д<EFBFBD><EFBFBD><EBB2BB><EFBFBD><EFBFBD>־
"Admin.Core.Extensions.ApiResponseHandler": "Error"
},
"Debug": {
"LogLevel": {
"Default": "Warning"
}
},
"Console": {
"LogLevel": {
"Default": "Warning",
"Microsoft.Hosting.Lifetime": "Debug"
}
},
"Log4Net": {
"Name": "Admin.Core"
}
},
"AppSettings": {
"RedisCachingAOP": {
"Enabled": false,
"ConnectionString": ""
},
"MemoryCachingAOP": {
"Enabled": false
},
"LogAOP": {
"Enabled": false
},
"TranAOP": {
"Enabled": false
},
"SqlAOP": {
"Enabled": false,
"OutToLogFile": {
"Enabled": false
},
"OutToConsole": {
"Enabled": false
}
},
"FileRootPath": "/file/",
"Date": "2018-08-28",
"Author": "Admin.Core",
"UseLoadTest": true,
"CacheTimeOut": 60, //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ػ<EFBFBD><D8BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><E4A3BA><EFBFBD><EFBFBD>
"ApiRoot": "http://localhost:55014"
},
"Audience": {
"Secret": "dk6Vv3oTuo2OMU18w86E3j11DtM7RUX5icQtA0DCKuhYDRUqBLIiL", //<2F><>Ҫ̫<D2AA>̣<EFBFBD>16λ+
"SecretFile": "E:\\my-file\\admin.core.audience.secret.txt", //<2F><>ȫ<EFBFBD><C8AB><EFBFBD><EFBFBD><EFBFBD>ݾ<EFBFBD><DDBE><EFBFBD>Secret
"Issuer": "Admin.Core",
"Audience": "wr",
"Expiration": "6000000" //<2F>ӿڵĹ<DAB5><C4B9><EFBFBD>ʱ<EFBFBD><CAB1>
},
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>MainDBΪ<42><CEAA><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ConnIdֵ,<2C><><EFBFBD><EFBFBD><EFBFBD>ö<EFBFBD>Ӧ<EFBFBD><D3A6>EnabledΪtrue<75><65>
// *** <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> MutiDBEnabled <20><>Ϊfalse ***<2A><>
// *** <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> MutiDBEnabled <20><>Ϊtrue<75><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĵӿ<C4B4>EnabledҲΪtrue **<2A><>
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD>Ƶ<EFBFBD><C6B5>https://www.bilibili.com/video/BV1BJ411B7mn?p=6
"MainDB": "ADMIN_SQLITE", //<2F><>ǰ<EFBFBD><C7B0>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E2A3AC><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD>Enabled<65><64><EFBFBD><EFBFBD>Ϊtrue
"MutiDBEnabled": false, //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>ģʽ
"CQRSEnabled": false, //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD>ģʽ<C4A3><CABD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǵ<EFBFBD><C7B5><EFBFBD>ģʽ<C4A3><CABD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD>£<EFBFBD><C2A3><EFBFBD><EFBFBD><EFBFBD><E7B6BC>SqlServer
"DBS": [
/*
<EFBFBD><EFBFBD>Ӧ<EFBFBD>±ߵ<EFBFBD> DBType
MySql = 0,
SqlServer = 1,
Sqlite = 2,
Oracle = 3,
PostgreSQL = 4,
Dm = 5,//<2F><><EFBFBD><EFBFBD>
Kdbndp = 6,//<2F>˴<EFBFBD><CBB4><EFBFBD>
*/
{
"ConnId": "ADMIN_SQLITE",
"DBType": 1,
"Enabled": true,
"HitRate": 50,
"Connection": "Data Source=localhost;Initial Catalog=Hsdb;User ID=sa;Password=Password01!;Integrated Security=false;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False",
//"Connection": "Data Source=.;Initial Catalog=RCEP_Market;User ID=sa;Password=Password01!;Integrated Security=false;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False",
"ProviderName": "System.Data.SqlClient"
}
],
"Startup": {
"Cors": {
"PolicyName": "CorsIpAccess", //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
"EnableAllIPs": true, //<2F><>Ϊtrueʱ<65><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>IP<49><50><EFBFBD>ɷ<EFBFBD><C9B7>ʡ<EFBFBD>
// ֧<>ֶ<EFBFBD><D6B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˿ڣ<CBBF>ע<EFBFBD><D7A2>˿ںź<DABA>Ҫ<EFBFBD><D2AA>/б<>ˣ<EFBFBD><CBA3><EFBFBD><EFBFBD><EFBFBD>localhost:8000/<2F><><EFBFBD>Ǵ<EFBFBD><C7B4>
// ע<>⣬http://127.0.0.1:1818 <20><> http://localhost:1818 <20>Dz<EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>
"IPs": "http://localhost:81,http://127.0.0.1:81"
},
"AppConfigAlert": {
"Enabled": true
},
"ApiName": "Admin.Core",
"IdentityServer4": {
"Enabled": false, // <20><><EFBFBD><EFBFBD>Ĭ<EFBFBD><C4AC><EFBFBD><EFBFBD>false<73><65><EFBFBD><EFBFBD>ʾʹ<CABE><CAB9>jwt<77><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊtrue<75><65><EFBFBD><EFBFBD><EFBFBD>ʾϵͳʹ<CDB3><CAB9>Ids4ģʽ
"AuthorizationUrl": "http://localhost:5004", // <20><>֤<EFBFBD><D6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
"ApiName": "admin.core.api", // <20><>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
},
"RedisMq": {
"Enabled": false //redis <20><>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>
},
"MiniProfiler": {
"Enabled": false //<2F><><EFBFBD>ܷ<EFBFBD><DCB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
},
"Nacos": {
"Enabled": false //Nacosע<73><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}
},
"Redis": {
//"ConnectionString": "127.0.0.1:6379"
"ConnectionString": "13.75.92.230:6379"
},
"RabbitMQ": {
"Enabled": true,
"Connection": "http://localhost:15672/",
"UserName": "jojo",
"Password": "123456",
"RetryCount": 3
},
"EventBus": {
"Enabled": true,
"SubscriptionClientName": "Admin.Core"
},
"Middleware": {
"RequestResponseLog": {
"Enabled": true
},
"IPLog": {
"Enabled": false
},
"RecordAccessLogs": {
"Enabled": true,
"IgnoreApis": ""
},
"SignalR": {
"QuartzNetJob": null,
"Enabled": true
},
"QuartzNetJob": {
"Enabled": true
},
"Consul": {
"Enabled": false
},
"IpRateLimit": {
"Enabled": false
}
},
"IpRateLimiting": {
"EnableEndpointRateLimiting": false, //False: globally executed, true: executed for each
"StackBlockedRequests": false, //False: Number of rejections should be recorded on another counter
"RealIpHeader": "X-Real-IP",
"ClientIdHeader": "X-ClientId",
"IpWhitelist": [], //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
"EndpointWhitelist": [ "get:/api/xxx", "*:/api/yyy" ],
"ClientWhitelist": [ "dev-client-1", "dev-client-2" ],
"QuotaExceededResponse": {
"Content": "{{\"status\":429,\"msg\":\"<22><><EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ժ<EFBFBD><D4BA><EFBFBD><EFBFBD><EFBFBD>\",\"success\":false}}",
"ContentType": "application/json",
"StatusCode": 429
},
"HttpStatusCode": 429, //<2F><><EFBFBD><EFBFBD>״̬<D7B4><CCAC>
"GeneralRules": [ //api<70><69><EFBFBD><EFBFBD>,<2C><>βһ<CEB2><D2BB>Ҫ<EFBFBD><D2AA>*
{
"Endpoint": "*:/api/Admin*",
"Period": "1m",
"Limit": 20
},
{
"Endpoint": "*/api/*",
"Period": "1s",
"Limit": 3
},
{
"Endpoint": "*/api/*",
"Period": "1m",
"Limit": 30
},
{
"Endpoint": "*/api/*",
"Period": "12h",
"Limit": 500
}
]
},
"LogFiedOutPutConfigs": {
"tcpAddressHost": "", // <20><><EFBFBD>elk<6C><6B>tcp<63><70><EFBFBD>ӵ<EFBFBD>ַ
"tcpAddressPort": 0, // <20><><EFBFBD>elk<6C><6B>tcp<63>˿ں<CBBF>
"ConfigsInfo": [ // <20><><EFBFBD>õ<EFBFBD><C3B5><EFBFBD><EFBFBD>elk<6C>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ﶯ̬<EFB6AF><CCAC>ʶ
{
"FiedName": "applicationName",
"FiedValue": "Admin.Core.Api"
}
]
}
}