Skip to content

Commit c74f84b

Browse files
easyCZroboquat
authored andcommitted
[proxy] Remove workspace download plugin
1 parent fa8cdc5 commit c74f84b

File tree

5 files changed

+0
-1409
lines changed

5 files changed

+0
-1409
lines changed

components/proxy/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ RUN xcaddy build v2.6.2 \
1313
--output /caddy \
1414
--with github.com/gitpod-io/gitpod/proxy/plugins/corsorigin=/plugins/corsorigin \
1515
--with github.com/gitpod-io/gitpod/proxy/plugins/secwebsocketkey=/plugins/secwebsocketkey \
16-
--with github.com/gitpod-io/gitpod/proxy/plugins/workspacedownload=/plugins/workspacedownload \
1716
--with github.com/gitpod-io/gitpod/proxy/plugins/headlesslogdownload=/plugins/headlesslogdownload \
1817
--with github.com/gitpod-io/gitpod/proxy/plugins/configcat=/plugins/configcat \
1918
--with github.com/gitpod-io/gitpod/proxy/plugins/logif=/plugins/logif \

components/proxy/conf/Caddyfile

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# configure plugin order
1414
# https://caddyserver.com/docs/caddyfile/directives#directive-order
1515
order gitpod.cors_origin before header
16-
order gitpod.workspace_download before redir
1716
order gitpod.headless_log_download before rewrite
1817
order gitpod.configcat before rewrite
1918
order gitpod.sec_websocket_key before header
@@ -167,23 +166,6 @@ https://{$GITPOD_DOMAIN} {
167166
import ssl_configuration
168167
import security_headers
169168

170-
@workspace_download path /workspace-download*
171-
handle @workspace_download {
172-
import google_storage_headers
173-
174-
header {
175-
# The browser needs to see the correct archive content type to trigger the download.
176-
content-type "application/tar+gzip"
177-
}
178-
179-
gitpod.workspace_download {
180-
service http://server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000
181-
}
182-
183-
# redirect works here because we "navigate" to this URL, which makes the browser handle this as primary request, and not fuff around with CORS at all
184-
redir {http.gitpod.workspace_download_url} 303
185-
}
186-
187169
@headless_log_download path /headless-log-download*
188170
handle @headless_log_download {
189171
header {

components/proxy/plugins/workspacedownload/go.mod

Lines changed: 0 additions & 112 deletions
This file was deleted.

0 commit comments

Comments
 (0)