Skip to content

Commit b0bfd65

Browse files
committed
[proxy] Remove slow-server config
1 parent 417ca15 commit b0bfd65

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

components/proxy/conf/Caddyfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,18 @@ https://{$GITPOD_DOMAIN} {
285285
handle @to_server {
286286
import compression
287287

288-
reverse_proxy server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
288+
forward_auth server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
289+
uri /feature-flags/slow-database
290+
copy_headers X-Gitpod-Slow-Database
291+
}
292+
293+
import slow_fast_matchers
294+
295+
reverse_proxy @fast server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
296+
import upstream_connection
297+
}
298+
299+
reverse_proxy @slow slow-server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
289300
import upstream_connection
290301
}
291302
}

0 commit comments

Comments
 (0)