-
Notifications
You must be signed in to change notification settings - Fork 1
/
krakend2.json
59 lines (59 loc) · 1.45 KB
/
krakend2.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
52
53
54
55
56
57
58
59
{
"$schema": "https://www.krakend.io/schema/v3.json",
"version": 3,
"name": "KrakenD - API Gateway",
"timeout": "3000ms",
"cache_ttl": "300s",
"output_encoding": "json",
"plugin": {
"pattern":".so",
"folder": "/opt/krakend/plugins/"
},
"endpoints": [
{
"endpoint": "/eicar.com.txt",
"method": "GET",
"output_encoding": "no-op",
"backend": [
{
"url_pattern": "/eicar.com.txt",
"encoding": "no-op",
"sd": "static",
"method": "GET",
"host": [
"172.17.0.5:80"
],
"disable_host_sanitize": false,
"extra_config":{
"plugin/req-resp-modifier":{
"name": [
"krakend-clamav-request",
"krakend-clamav-response"
],
"krakend-clamav":{
"clamd_address":"tcp://172.17.0.3:3310",
"scan_metadata":true,
"scan_body":true,
"scan_form_files":true
}
}
}
}
],
"extra_config":{
"plugin/req-resp-modifier":{
"name": [
"krakend-clamav-request",
"krakend-clamav-response"
],
"krakend-clamav":{
"clamd_address":"tcp://172.17.0.3:3310",
"scan_metadata":true,
"scan_body":true,
"scan_form_files":true
}
}
}
}
]
}