-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefinitions.json
42 lines (42 loc) · 1010 Bytes
/
definitions.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
40
41
42
[
{
"name": "usermgmt_service",
"active": true,
"proxy": {
"listen_path": "/usrmgmt/*",
"upstream": "http://localhost:8080",
"strip_path": true,
"preserve_host": false
},
"plugins": [
{
"name":"limiter",
"enable": true,
"config": {
"strategy": "sliding-window",
"storage": "local",
"policy": "IP",
"rates": ["5/1-M"]
}
}
]
},
{
"name": "test",
"active": true,
"proxy":{
"listen_path": "/test/*",
"upstream": "http://localhost:8080"
},
"plugins": [
{
"name":"limiter",
"enable": false,
"config": {
"quota": 4,
"per": "m"
}
}
]
}
]