-
Notifications
You must be signed in to change notification settings - Fork 11
/
j8acfg.yml
292 lines (286 loc) · 5.45 KB
/
j8acfg.yml
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
---
connection:
downstream:
readTimeoutSeconds: 3
roundTripTimeoutSeconds: 20
idleTimeoutSeconds: 30
http:
port: 8080
maxBodyBytes: 65535
upstream:
socketTimeoutSeconds: 3
readTimeoutSeconds: 30
idleTimeoutSeconds: 10
maxAttempts: 4
poolSize: 8
tlsInsecureSkipVerify: true
jwt:
all:
alg: RS256
key: |
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuFrwC7xqek3lA7TkRMBr
7koamTCE5DF0UxVPd0FbmloGTkkLLXW3R6fOxubi8O2PXk/tN+TfJZiOYswUE/+n
gR7gEXLebosLtVdmbGraTGwtoGmpSe3FRr9ZmQu74pZsAzwqZVMqz6CINc7uvxTI
Djd98ORUrnuxqgHE9Yz/uo2qvnaOgWIXKhkDkMqA8O0Fk/kaCfeeZQMN70OnCwIS
+LPFE8uYGIdbaEIkjZfMxm/iNRENOV849vwOiOuWruCyp+YMqTVtcW49Q1mcZfyG
T7B5GHWe7MtxqQNhf1m2Nvo1m/LvaLap/EM3684xOa6RexB1XdB8oegpMRygPx7o
rwIDAQAB
-----END PUBLIC KEY-----
policies:
ab:
- label: green
weight: 0.8
- label: blue
weight: 0.2
routes:
- path: /todos
resource: jsonplaceholder
- path: /about
resource: about
- path: /mse6/some
resource: mse61
- path: /mse6/
resource: mse6
policy: ab
- path: /mse7
transform: /mse6
resource: mse6
policy: ab
- path: "/s01"
resource: s01
- path: "/s02"
resource: s02
- path: "/s03"
resource: s03
- path: "/s04"
resource: s04
- path: "/s05"
resource: s05
- path: "/s06"
resource: s06
- path: "/s07"
resource: s07
- path: "/s08"
resource: s08
- path: "/s09"
resource: s09
- path: "/s10"
resource: s10
- path: "/s11"
resource: s11
- path: "/s12"
resource: s12
- path: "/s13"
resource: s13
- path: "/s14"
resource: s14
- path: "/s15"
resource: s15
- path: "/s16"
resource: s16
- path: "/badip"
resource: badip
- path: "/baddns"
resource: baddns
- path: "/badremote"
resource: badremote
- path: "/badlocal"
resource: badlocal
- path: /badssl
resource: badssl
- path: /path/med/2
pathType: exact
resource: blah
- path: /path/med/1st
pathType: exact
resource: blah
- path: /longfirstslug_longfirstslug_longfirstslug_longfirstslug/short
resource: blah
- path: /short/longersecondslug_longersecondslug_longersecondslug_longersecondslug
resource: blah
- path: /a/a/
resource: blah
- path: /a/ab/
resource: blah
- path: /path/long/hierarchy/2nd
pathType: prefix
resource: blah
- path: /path/long/hierarchy/first
pathType: prefix
resource: blah
- path: /c/a
resource: blah
- path: /ab/a/a/
resource: blah
- path: /
resource: blah
- path: /*
resource: blah
- path: /*/a
resource: blah
- path: /*/a/g*a/ba^
resource: blah
- path: /a
resource: blah
- path: /aa
resource: blah
- path: /hostpath
host: host.com
resource: blah
- path: /
host: host3.com
resource: blah
- path: /
host: a.host2.com
resource: blah
- path: /
pathType: exact
host: a.host2.com
resource: blah
- path: /
host: "*.host2.com"
resource: blah
- path: /
host: host123456789.com
resource: blah
resources:
jsonplaceholder:
- url:
scheme: https
host: jsonplaceholder.typicode.com
port: 443
badssl:
- url:
scheme: https
host: localhost
port: 60101
badip:
- url:
scheme: http
host: 10.247.13.14
port: 29471
baddns:
- url:
scheme: http
host: kajsdkfj23848392sdfjsj332jkjkjdkshhhhimnotahost.com
port: 29471
badremote:
- url:
scheme: http
host: google.com
port: 29471
badlocal:
- url:
scheme: http
host: localhost
port: 29471
mse61:
- url:
scheme: 'http:'
host: localhost
port: 60083
mse6:
- labels:
- green
url:
scheme: http://
host: localhost
port: 60083
- labels:
- blue
url:
host: localhost
port: 60084
s01:
- url:
scheme: http
host: localhost
port: 60085
s02:
- url:
scheme: http
host: localhost
port: 60086
s03:
- url:
scheme: http
host: localhost
port: 60087
s04:
- url:
scheme: http
host: localhost
port: 60088
s05:
- url:
scheme: http
host: localhost
port: 60089
s06:
- url:
scheme: http
host: localhost
port: 60090
s07:
- url:
scheme: http
host: localhost
port: 60091
s08:
- url:
scheme: http
host: localhost
port: 60092
s09:
- url:
scheme: http
host: localhost
port: 60093
s10:
- url:
scheme: http
host: localhost
port: 60094
s11:
- url:
scheme: http
host: localhost
port: 60095
s12:
- url:
scheme: http
host: localhost
port: 60096
s13:
- url:
scheme: http
host: localhost
port: 60097
s14:
- url:
scheme: http
host: localhost
port: 60098
s15:
- url:
scheme: http
host: localhost
port: 60099
s16:
- url:
scheme: http
host: localhost
port: 60100
noport80:
- url:
scheme: http
host: localhost
noport443:
- url:
scheme: https
host: localhost
blah:
- url:
scheme: http
host: localhost