125125 }
126126}
127127
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-
138128# Kubernetes health-check
139129:8003 {
140130 respond /live 200
@@ -228,24 +218,9 @@ https://{$GITPOD_DOMAIN} {
228218
229219 gitpod .sec_websocket_key
230220
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-
242221 uri strip_prefix /api
243222
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 {
249224 import upstream_connection
250225 }
251226 }
@@ -256,23 +231,9 @@ https://{$GITPOD_DOMAIN} {
256231 base_domain {$GITPOD_DOMAIN}
257232 }
258233
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-
266234 uri strip_prefix /api
267235
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 {
276237 import upstream_connection
277238
278239 # required for smooth streaming of terminal logs
@@ -324,18 +285,8 @@ https://{$GITPOD_DOMAIN} {
324285 handle @to_server {
325286 import compression
326287
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 {
289+ import upstream_headers
339290 import upstream_connection
340291 }
341292 }
0 commit comments