fix: remove path-based port proxying (#4063)

This commit is contained in:
Dean Sheather
2022-09-17 02:31:08 +10:00
committed by GitHub
parent 6e9c05f859
commit fc841898cd
2 changed files with 6 additions and 22 deletions

View File

@ -38,12 +38,12 @@ func (api *API) workspaceAppsProxyPath(rw http.ResponseWriter, r *http.Request)
chiPath = "/" + chiPath
}
appName, port := httpapi.AppNameOrPort(chi.URLParam(r, "workspaceapp"))
api.proxyWorkspaceApplication(proxyApplication{
Workspace: workspace,
Agent: agent,
AppName: appName,
Port: port,
Workspace: workspace,
Agent: agent,
// We do not support port proxying for paths.
AppName: chi.URLParam(r, "workspaceapp"),
Port: 0,
Path: chiPath,
DashboardOnError: true,
}, rw, r)