-
Notifications
You must be signed in to change notification settings - Fork 0
/
krakend_sample.json
49 lines (49 loc) · 1.34 KB
/
krakend_sample.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
{
"version": 2,
"name": "krakend ftw",
"port": 8080,
"cache_ttl": "3600s",
"timeout": "3s",
"plugin": {
"pattern": ".so",
"folder": "/path/to/plugins"
},
"extra_config": {
"github_com/devopsfaith/krakend-gologging": {
"level": "WARNING",
"prefix": "[KRAKEND]",
"syslog": false,
"stdout": true
},
"github_com/devopsfaith/krakend/transport/http/server/handler": {
"name": "krakend-azure-plugin"
}
},
"endpoints": [
{
"extra_config": {
"github.com/devopsfaith/krakend-cel": [
{
"check_expr": "JWT.tid.matches('8379e38f-b9ed-4168-8a1b-69be764c9750') || JWT.tid.matches('6b422a8e-f6fe-46ba-ba4b-1e8996f88382')"
}
]
},
"endpoint": "/",
"method": "GET",
"output_encoding": "no-op",
"headers_to_pass": [
"*"
],
"backend": [
{
"encoding": "no-op",
"sd": "static",
"disable_host_sanitize": false,
"host": [
"http://localhost:8081"
]
}
]
}
]
}