diff --git a/chart/config/proxy/vhost.server.conf b/chart/config/proxy/vhost.server.conf index 79fd3ff6a1524f..ed77428bd3113d 100644 --- a/chart/config/proxy/vhost.server.conf +++ b/chart/config/proxy/vhost.server.conf @@ -132,10 +132,10 @@ server { server { listen {{ $listen }}; # Matches: - # - (webview-|browser-)?+ foreign content prefix including UUID (optional). This must be possesive (?+) to not confuse "webview-8000-a1231-..." with a valid UUID + # - (webview-|browser-|extensions-)?+ foreign content prefix including UUID (optional). This must be possesive (?+) to not confuse "webview-8000-a1231-..." with a valid UUID # - (?[a-z][0-9a-z\-]+) workspace Id or blobserve # - \.ws(-[a-z0-9]+)? workspace base domain - server_name ~^(webview-|browser-)?+(?[a-z0-9][0-9a-z\-]+)\.ws(-[a-z0-9]+)?\.${PROXY_DOMAIN_REGEX}$; + server_name ~^(webview-|browser-|extensions-)?+(?[a-z0-9][0-9a-z\-]+)\.ws(-[a-z0-9]+)?\.${PROXY_DOMAIN_REGEX}$; {{- if $useHttps }} {{- if eq .Values.ingressMode "pathAndHost" }} @@ -153,12 +153,12 @@ server { server { listen {{ $listen }}; # Matches: - # - (webview-|browser-)?+ for now, we only support Theia webviews here! (TODO is there a - meaningful - way to generalize this?) + # - (webview-|browser-|extensions-)?+ for now, we only support Theia webviews here! (TODO is there a - meaningful - way to generalize this?) # - (?[0-9]{2,5})- port to forward to # - (?[a-z][0-9a-z\-]+) workspace Id # - \.ws(-[a-z0-9]+)? workspace base domain # "" needed because of {} (nginx syntax wart) - server_name "~^(webview-|browser-)?+(?[0-9]{2,5})-(?[a-z0-9][0-9a-z\-]+)\.ws(-[a-z0-9]+)?\.${PROXY_DOMAIN_REGEX}$"; + server_name "~^(webview-|browser-|extensions-)?+(?[0-9]{2,5})-(?[a-z0-9][0-9a-z\-]+)\.ws(-[a-z0-9]+)?\.${PROXY_DOMAIN_REGEX}$"; {{- if $useHttps }} {{- if eq .Values.ingressMode "pathAndHost" }} diff --git a/components/ide/code/leeway.Dockerfile b/components/ide/code/leeway.Dockerfile index 20839c171d1596..046cfcf9d556a0 100644 --- a/components/ide/code/leeway.Dockerfile +++ b/components/ide/code/leeway.Dockerfile @@ -28,7 +28,7 @@ RUN sudo apt-get update \ && sudo apt-get clean -y \ && rm -rf /var/lib/apt/lists/* -ENV GP_CODE_COMMIT 1bca02e66c4df443f716865592fe4dec16db5d7e +ENV GP_CODE_COMMIT fff45adc4e4a85b0944bd8a7dcb631e0018cb2c4 RUN mkdir gp-code \ && cd gp-code \ && git init \ diff --git a/components/ws-proxy/pkg/proxy/workspacerouter.go b/components/ws-proxy/pkg/proxy/workspacerouter.go index 358191e82004ca..23e6bea6cbd9c0 100644 --- a/components/ws-proxy/pkg/proxy/workspacerouter.go +++ b/components/ws-proxy/pkg/proxy/workspacerouter.go @@ -63,7 +63,7 @@ func HostBasedRouter(header, wsHostSuffix string) WorkspaceRouter { type hostHeaderProvider func(req *http.Request) string func matchWorkspaceHostHeader(wsHostSuffix string, headerProvider hostHeaderProvider) mux.MatcherFunc { - r := regexp.MustCompile("^(webview-|browser-)?" + workspaceIDRegex + wsHostSuffix) + r := regexp.MustCompile("^(webview-|browser-|extensions-)?" + workspaceIDRegex + wsHostSuffix) return func(req *http.Request, m *mux.RouteMatch) bool { hostname := headerProvider(req) if hostname == "" { @@ -92,7 +92,7 @@ func matchWorkspaceHostHeader(wsHostSuffix string, headerProvider hostHeaderProv } func matchWorkspacePortHostHeader(wsHostSuffix string, headerProvider hostHeaderProvider) mux.MatcherFunc { - r := regexp.MustCompile("^(webview-|browser-)?" + workspacePortRegex + workspaceIDRegex + wsHostSuffix) + r := regexp.MustCompile("^(webview-|browser-|extensions-)?" + workspacePortRegex + workspaceIDRegex + wsHostSuffix) return func(req *http.Request, m *mux.RouteMatch) bool { hostname := headerProvider(req) if hostname == "" {