Admin.net框架
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
4.5 KiB

5 days ago
{
"$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": [
// 11
{
"Endpoint": "*",
"Period": "1s",
"Limit": 10
},
// 1100
{
"Endpoint": "*",
"Period": "1m",
"Limit": 1000
},
// 11000
{
"Endpoint": "*",
"Period": "1h",
"Limit": 10000
},
// 110000
{
"Endpoint": "*",
"Period": "1d",
"Limit": 1000000
}
]
},
"IpRateLimitPolicies": {
"IpRules": [
{
"Ip": "XXX.XXX.XXX.XXX",
"Rules": [
{
"Endpoint": "*",
"Period": "1s",
"Limit": 10
},
{
"Endpoint": "*",
"Period": "1m",
"Limit": 1000
}
]
}
]
},
//
"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": 1000
}
]
},
"ClientRateLimitPolicies": {
"ClientRules": [
{
"ClientId": "xxx-xxx",
"Rules": [
{
"Endpoint": "*",
"Period": "1s",
"Limit": 10
},
{
"Endpoint": "*",
"Period": "1m",
"Limit": 1000
}
]
}
]
}
}