-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrate-limiting.meta.json
39 lines (39 loc) · 1.01 KB
/
rate-limiting.meta.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"config_schema": {
"type": "object",
"properties": {
"second": { "type": "integer" },
"minute": { "type": "integer" },
"hour": { "type": "integer" },
"day": { "type": "integer" },
"month": { "type": "integer" },
"year": { "type": "integer" },
"limit_by": {
"type": "string",
"enum": [ "ip", "header", "path" ],
"default": "ip"
},
"header_name": {
"type": "string",
"pattern": "^[A-Za-z0-9_]+$"
},
"path": {
"type": "string",
"pattern": "^/[A-Za-z0-9_.~/%:@!$&'()*+,;=-]*$"
},
"policy": {
"type": "string",
"enum": ["local"],
"default": "local"
},
"fault_tolerant": {
"type": "boolean",
"default": "true"
},
"hide_client_headers": {
"type": "boolean",
"default": "false"
}
}
}
}