Skip to content

Commit a8a3781

Browse files
committed
Fix delete workspace proxy
1 parent c2ccfab commit a8a3781

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

enterprise/coderd/coderd.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ func New(ctx context.Context, options *Options) (*API, error) {
104104
// TODO: Add specific workspace proxy endpoints.
105105
r.Route("/{workspaceproxy}", func(r chi.Router) {
106106
r.Use(
107+
apiKeyMiddleware,
107108
httpmw.ExtractWorkspaceProxyParam(api.Database),
108109
)
109110

scripts/develop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ fatal() {
183183
log "Using external workspace proxy"
184184
(
185185
# Attempt to delete the proxy first, in case it already exists.
186-
"${CODER_DEV_SHIM}" proxy delete name=local-proxy || true
186+
"${CODER_DEV_SHIM}" proxy delete local-proxy || true
187187
# Create the proxy
188188
proxy_session_token=$("${CODER_DEV_SHIM}" proxy register --name=local-proxy --display-name="Local Proxy" --icon="/emojis/1f4bb.png" --access-url=http://localhost:3010 --only-token)
189189
# Start the proxy

0 commit comments

Comments
 (0)