We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Sec-WebSocket-Protocol
1 parent f025229 commit cd03a46Copy full SHA for cd03a46
components/proxy/conf/Caddyfile
@@ -210,8 +210,21 @@ https://{$GITPOD_DOMAIN} {
210
handle @backend_wss {
211
gitpod.sec_websocket_key
212
213
+ @slow {
214
+ header "Sec-WebSocket-Protocol" "slow-database"
215
+ }
216
+
217
+ @fast {
218
+ not header "Sec-WebSocket-Protocol" "slow-database"
219
220
221
uri strip_prefix /api
- reverse_proxy server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
222
223
+ reverse_proxy @fast server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
224
+ import upstream_headers
225
226
227
+ reverse_proxy @slow slow-server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
228
import upstream_headers
229
}
230
0 commit comments