File tree 1 file changed +13
-21
lines changed
1 file changed +13
-21
lines changed Original file line number Diff line number Diff line change 128
128
}
129
129
}
130
130
131
+ (slow_fast_matchers) {
132
+ @slow {
133
+ header X-Gitpod-Slow-Database "true"
134
+ }
135
+
136
+ @fast {
137
+ not header X-Gitpod-Slow-Database "true"
138
+ }
139
+ }
140
+
131
141
# Kubernetes health-check
132
142
:8003 {
133
143
respond /live 200
@@ -223,13 +233,7 @@ https://{$GITPOD_DOMAIN} {
223
233
copy_headers X-Gitpod-Slow-Database
224
234
}
225
235
226
- @slow {
227
- header X-Gitpod-Slow-Database "true"
228
- }
229
-
230
- @fast {
231
- not header X-Gitpod-Slow-Database "true"
232
- }
236
+ import slow_fast_matchers
233
237
234
238
uri strip_prefix /api
235
239
@@ -255,13 +259,7 @@ https://{$GITPOD_DOMAIN} {
255
259
copy_headers X-Gitpod-Slow-Database
256
260
}
257
261
258
- @slow {
259
- header X-Gitpod-Slow-Database "true"
260
- }
261
-
262
- @fast {
263
- not header X-Gitpod-Slow-Database "true"
264
- }
262
+ import slow_fast_matchers
265
263
266
264
uri strip_prefix /api
267
265
@@ -319,13 +317,7 @@ https://{$GITPOD_DOMAIN} {
319
317
copy_headers X-Gitpod-Slow-Database
320
318
}
321
319
322
- @slow {
323
- header X-Gitpod-Slow-Database "true"
324
- }
325
-
326
- @fast {
327
- not header X-Gitpod-Slow-Database "true"
328
- }
320
+ import slow_fast_matchers
329
321
330
322
reverse_proxy @fast server.{$KUBE_NAMESPACE} .{$KUBE_DOMAIN} :3000 {
331
323
import upstream_headers
You can’t perform that action at this time.
0 commit comments