-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkrakend.json
51 lines (51 loc) · 1.19 KB
/
krakend.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
43
44
45
46
47
48
49
50
51
{
"version": 3,
"name": "nurettintopal/gate",
"port": 8080,
"extra_config": {
"qos/ratelimit/proxy": {
"max_rate": 100,
"client_max_rate": 20,
"strategy": "ip"
},
"security/ipfilter": {
"whitelist": ["192.168.1.0/24"],
"blacklist": ["192.168.1.100"]
}
},
"endpoints": [
{
"endpoint": "/public",
"method": "GET",
"backend": [
{
"url_pattern": "/todos/1",
"host": ["https://jsonplaceholder.typicode.com"]
}
]
},
{
"endpoint": "/secure",
"method": "GET",
"extra_config": {
"qos/ratelimit/proxy": {
"max_rate": 50,
"client_max_rate": 10,
"strategy": "ip"
},
"auth/validator": {
"header": "Authorization",
"endpoint": "/validate-token",
"host": ["https://jsonplaceholder.typicode.com"],
"error_status": 401
}
},
"backend": [
{
"url_pattern": "/todos/1",
"host": ["https://jsonplaceholder.typicode.com"]
}
]
}
]
}