Commit 3f64c7fe by ruyun.zhang

接口白名单

parent 246fb67e
...@@ -7,7 +7,14 @@ ...@@ -7,7 +7,14 @@
"HttpStatusCode": 429, "HttpStatusCode": 429,
// 本地测试需要取消白名单IP // 本地测试需要取消白名单IP
//"IpWhitelist": [ "127.0.0.1", "::1/10", "192.168.0.0/24" ], //"IpWhitelist": [ "127.0.0.1", "::1/10", "192.168.0.0/24" ],
"EndpointWhitelist": [ "get:/api/license" ], "EndpointWhitelist": [
"*:/api/license",
"*:/api/function/limit",
"*:/api/menu/menulist",
"*:/api/common/version",
"*:/api/report/rank",
"*:/api/graphql"
],
"ClientWhitelist": [ "dev-id-1", "dev-id-2" ], "ClientWhitelist": [ "dev-id-1", "dev-id-2" ],
"QuotaExceededResponse": { "QuotaExceededResponse": {
"Content": "{{ \"code\":429, \"message\": \"您访问过于频繁,请稍后重试...\"}}", "Content": "{{ \"code\":429, \"message\": \"您访问过于频繁,请稍后重试...\"}}",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment