update appsettings.json

This commit is contained in:
不做码农 2022-06-09 08:41:49 +08:00
parent 756dc66350
commit 17008fc9c9

View File

@ -56,20 +56,12 @@
}, },
// //
"IpRateLimiting": { "IpRateLimiting": {
//5访False访5访
//True5GetData访访PostData()5,5
"EnableEndpointRateLimiting": true, "EnableEndpointRateLimiting": true,
//falseAPI; 3APIAPI
//StackBlockedRequeststrue
"StackBlockedRequests": false, "StackBlockedRequests": false,
"RealIpHeader": "X-Real-IP", "RealIpHeader": "X-Real-IP",
//IDIDClientWhitelist
"ClientIdHeader": "X-ClientId", "ClientIdHeader": "X-ClientId",
"HttpStatusCode": 429, "HttpStatusCode": 429,
//
"EndpointWhitelist": [ "post:/system/dict/data/types", "*:/msghub/negotiate", "*:/LogOut" ], "EndpointWhitelist": [ "post:/system/dict/data/types", "*:/msghub/negotiate", "*:/LogOut" ],
//
//"ClientWhitelist": [ "dev-id-1", "dev-id-2" ],
"QuotaExceededResponse": { "QuotaExceededResponse": {
"Content": "{{\"code\":429,\"msg\":\"访问过于频繁,请稍后重试\"}}", "Content": "{{\"code\":429,\"msg\":\"访问过于频繁,请稍后重试\"}}",
"ContentType": "application/json", "ContentType": "application/json",
@ -95,27 +87,6 @@
"Period": "3s", "Period": "3s",
"Limit": 1 "Limit": 1
} }
//{
// "Endpoint": "*",
// //{}{}使s, m, h, d
// "Period": "1s",
// "Limit": 2
//}
//{
// "Endpoint": "*",
// "Period": "15m",
// "Limit": 100
//},
//{
// "Endpoint": "*",
// "Period": "12h",
// "Limit": 1000
//},
//{
// "Endpoint": "*",
// "Period": "7d",
// "Limit": 10000
//}
], ],
"IpRateLimitPolicies": { "IpRateLimitPolicies": {
//ip //ip