125
125
}
126
126
}
127
127
128
- (slow_fast_matchers) {
129
- @slow {
130
- header X-Gitpod-Slow-Database "true"
131
- }
132
-
133
- @fast {
134
- not header X-Gitpod-Slow-Database "true"
135
- }
136
- }
137
-
138
128
# Kubernetes health-check
139
129
:8003 {
140
130
respond /live 200
@@ -228,24 +218,9 @@ https://{$GITPOD_DOMAIN} {
228
218
229
219
gitpod .sec_websocket_key
230
220
231
- forward_auth server.{$KUBE_NAMESPACE} .{$KUBE_DOMAIN} :3000 {
232
- uri /feature-flags/slow-database
233
-
234
- header_up -Connection
235
- header_up -Upgrade
236
-
237
- copy_headers X-Gitpod-Slow-Database
238
- }
239
-
240
- import slow_fast_matchers
241
-
242
221
uri strip_prefix /api
243
222
244
- reverse_proxy @fast server.{$KUBE_NAMESPACE} .{$KUBE_DOMAIN} :3000 {
245
- import upstream_connection
246
- }
247
-
248
- reverse_proxy @slow slow-server.{$KUBE_NAMESPACE} .{$KUBE_DOMAIN} :3000 {
223
+ reverse_proxy server.{$KUBE_NAMESPACE} .{$KUBE_DOMAIN} :3000 {
249
224
import upstream_connection
250
225
}
251
226
}
@@ -256,23 +231,9 @@ https://{$GITPOD_DOMAIN} {
256
231
base_domain {$GITPOD_DOMAIN}
257
232
}
258
233
259
- forward_auth server.{$KUBE_NAMESPACE} .{$KUBE_DOMAIN} :3000 {
260
- uri /feature-flags/slow-database
261
- copy_headers X-Gitpod-Slow-Database
262
- }
263
-
264
- import slow_fast_matchers
265
-
266
234
uri strip_prefix /api
267
235
268
- reverse_proxy @fast server.{$KUBE_NAMESPACE} .{$KUBE_DOMAIN} :3000 {
269
- import upstream_connection
270
-
271
- # required for smooth streaming of terminal logs
272
- flush_interval -1
273
- }
274
-
275
- reverse_proxy @slow slow-server.{$KUBE_NAMESPACE} .{$KUBE_DOMAIN} :3000 {
236
+ reverse_proxy server.{$KUBE_NAMESPACE} .{$KUBE_DOMAIN} :3000 {
276
237
import upstream_connection
277
238
278
239
# required for smooth streaming of terminal logs
@@ -324,18 +285,7 @@ https://{$GITPOD_DOMAIN} {
324
285
handle @to_server {
325
286
import compression
326
287
327
- forward_auth server.{$KUBE_NAMESPACE} .{$KUBE_DOMAIN} :3000 {
328
- uri /feature-flags/slow-database
329
- copy_headers X-Gitpod-Slow-Database
330
- }
331
-
332
- import slow_fast_matchers
333
-
334
- reverse_proxy @fast server.{$KUBE_NAMESPACE} .{$KUBE_DOMAIN} :3000 {
335
- import upstream_connection
336
- }
337
-
338
- reverse_proxy @slow slow-server.{$KUBE_NAMESPACE} .{$KUBE_DOMAIN} :3000 {
288
+ reverse_proxy server.{$KUBE_NAMESPACE} .{$KUBE_DOMAIN} :3000 {
339
289
import upstream_connection
340
290
}
341
291
}
0 commit comments