-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathkrakend.json
131 lines (131 loc) · 3.83 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"version": 2,
"port": 8080,
"extra_config": {
"github_com/devopsfaith/krakend-cors": {
"allow_origins": [
"http*"
],
"allow_headers": ["Origin", "Authorization", "Content-Length", "Content-Type", "Accept", "X-Auth-Token"],
"expose_headers": ["Content-Type", "Content-Length"],
"max_age": "12h",
"allow_credentials": false,
"allow_methods": [
"GET",
"HEAD",
"POST",
"PUT",
"DELETE",
"CONNECT",
"OPTIONS",
"TRACE",
"PATCH"
]
},
"github_com/devopsfaith/krakend-gologging": {
"level": "DEBUG",
"prefix": "[KRAKEND]",
"syslog": false,
"stdout": true,
"format": "default"
}
},
"timeout": "3000ms",
"cache_ttl": "300s",
"output_encoding": "json",
"name": "KrakenD API Gateway Service",
"endpoints": [
{
"endpoint": "/healthz",
"extra_config": {
"github.com/devopsfaith/krakend/proxy": {
"static": {
"data": {
"status": "OK"
},
"strategy": "always"
}
}
},
"backend": [
{
"url_pattern": "/",
"host": [
"http://fake-backend"
]
}
]
},
{
"endpoint": "/testjwt",
"method": "GET",
"extra_config": {
"github.com/devopsfaith/krakend-jose/validator": {
"alg": "RS256",
"jwk-url": "https://keycloak.server.tld/auth/realms/yourRealm/protocol/openid-connect/certs",
"issuer": "https://keycloak.server.tld/auth/realms/yourRealm",
"roles": [],
"roles_key": "userRealmRoles"
},
"github.com/devopsfaith/krakend/proxy": {
"static": {
"data": {
"jwt": "valid"
},
"strategy": "always"
}
}
},
"output_encoding": "json",
"concurrent_calls": 1,
"backend": [
{
"url_pattern": "/",
"encoding": "json",
"sd": "static",
"extra_config": {},
"method": "GET",
"host": [
"http://fake-backend"
],
"disable_host_sanitize": true
}
]
},
{
"endpoint": "/uploadDMARCBundle",
"method": "POST",
"extra_config": {
"github.com/devopsfaith/krakend-jose/validator": {
"alg": "RS256",
"jwk-url": "https://keycloak.server.tld/auth/realms/yourRealm/protocol/openid-connect/certs",
"issuer": "https://keycloak.server.tld/auth/realms/yourRealm",
"roles_key": "userRealmRoles"
}
},
"output_encoding": "no-op",
"concurrent_calls": 1,
"backend": [
{
"url_pattern": "/api/v1/upload_bundle",
"encoding": "no-op",
"sd": "static",
"extra_config": {},
"host": [
"http://dmarc-rest-api:8080"
],
"disable_host_sanitize": true
}
],
"headers_to_pass": [
"Accept",
"Accept-Encoding",
"Content-Encoding",
"Content-Length",
"Content-Type",
"Sec-Fetch-Mode",
"Sec-Fetch-Site"
]
}
]
}