操控平台后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
3.7 KiB

{
"$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
// IP
"IpRateLimiting": {
// :5访
// False访5访
// True 5GetData访访PostData()5,5
"EnableEndpointRateLimiting": true,
// StackBlockedRequestsfalseAPI3
// APIAPI
"StackBlockedRequests": false,
// RealIpHeader使Kestrel使IP X-Real-IP使
"RealIpHeader": "X-Real-IP",
// ClientIdHeaderIDIDClientWhitelist
"ClientIdHeader": "X-ClientId",
// IP:Ipv4Ipv6
"IpWhitelist": [],
//
"EndpointWhitelist": [],
//
"ClientWhitelist": [],
"QuotaExceededResponse": {
"Content": "{{\"code\":429,\"type\":\"error\",\"message\":\"访问过于频繁,请稍后重试!\",\"result\":null,\"extras\":null}}",
"ContentType": "application/json",
"StatusCode": 429
},
//
"HttpStatusCode": 429,
// API,*
"GeneralRules": [
// 110
{
"Endpoint": "*",
"Period": "1s",
"Limit": 10
},
// 1600
{
"Endpoint": "*",
"Period": "1m",
"Limit": 600
},
// 13600
{
"Endpoint": "*",
"Period": "1h",
"Limit": 3600
},
// 186400
{
"Endpoint": "*",
"Period": "1d",
"Limit": 86400
}
]
},
"IpRateLimitPolicies": {
"IpRules": [
{
"Ip": "XXX.XXX.XXX.XXX",
"Rules": [
{
"Endpoint": "*",
"Period": "1s",
"Limit": 10
},
{
"Endpoint": "*",
"Period": "1m",
"Limit": 600
}
]
}
]
},
//
"ClientRateLimiting": {
"EnableEndpointRateLimiting": true,
"ClientIdHeader": "X-ClientId",
"EndpointWhitelist": [],
"ClientWhitelist": [],
"QuotaExceededResponse": {
"Content": "{{\"code\":429,\"type\":\"error\",\"message\":\"访问人数过多,请稍后重试!\",\"result\":null,\"extras\":null}}",
"ContentType": "application/json",
"StatusCode": 429
},
"HttpStatusCode": 429,
"GeneralRules": [
{
"Endpoint": "*",
"Period": "1s",
"Limit": 10
},
{
"Endpoint": "*",
"Period": "1m",
"Limit": 600
}
]
},
"ClientRateLimitPolicies": {
"ClientRules": [
{
"ClientId": "xxx-xxx",
"Rules": [
{
"Endpoint": "*",
"Period": "1s",
"Limit": 10
},
{
"Endpoint": "*",
"Period": "1m",
"Limit": 600
}
]
}
]
}
}