Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2624ee8

Browse files
authored
chore: Remove extra opt and fix 'proxy' alias (#7413)
* chore: Remove extra opt and fix 'proxy' alias* proxy -> wsproxy
1 parentec11405 commit2624ee8

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

‎codersdk/deployment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ when required by your organization's security policy.`,
13501350
Description:"Whether Coder only allows connections to workspaces via the browser.",
13511351
Flag:"browser-only",
13521352
Env:"CODER_BROWSER_ONLY",
1353-
Annotations: clibase.Annotations{}.Mark(annotationEnterpriseKey,"true").Mark(annotationExternalProxies,"true"),
1353+
Annotations: clibase.Annotations{}.Mark(annotationEnterpriseKey,"true"),
13541354
Value:&c.BrowserOnly,
13551355
Group:&deploymentGroupNetworking,
13561356
YAML:"browserOnly",

‎enterprise/cli/workspaceproxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func (r *RootCmd) workspaceProxy() *clibase.Cmd {
1616
cmd:=&clibase.Cmd{
1717
Use:"workspace-proxy",
1818
Short:"Manage workspace proxies",
19-
Aliases: []string{"proxy"},
19+
Aliases: []string{"wsproxy"},
2020
Hidden:true,
2121
Handler:func(inv*clibase.Invocation)error {
2222
returninv.Command.HelpHandler(inv)

‎enterprise/cli/workspaceproxy_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func Test_ProxyCRUD(t *testing.T) {
4545
ctx:=testutil.Context(t,testutil.WaitLong)
4646
inv,conf:=newCLI(
4747
t,
48-
"proxy","create",
48+
"wsproxy","create",
4949
"--name",expectedName,
5050
"--display-name","Test Proxy",
5151
"--icon","/emojis/1f4bb.png",
@@ -68,7 +68,7 @@ func Test_ProxyCRUD(t *testing.T) {
6868
// Fetch proxies and check output
6969
inv,conf=newCLI(
7070
t,
71-
"proxy","ls",
71+
"wsproxy","ls",
7272
)
7373

7474
pty=ptytest.New(t)
@@ -118,7 +118,7 @@ func Test_ProxyCRUD(t *testing.T) {
118118

119119
inv,conf:=newCLI(
120120
t,
121-
"proxy","delete",expectedName,
121+
"wsproxy","delete",expectedName,
122122
)
123123

124124
pty:=ptytest.New(t)

‎scripts/develop.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,11 @@ fatal() {
181181
log"Using external workspace proxy"
182182
(
183183
# Attempt to delete the proxy first, in case it already exists.
184-
"${CODER_DEV_SHIM}"proxy delete local-proxy||true
184+
"${CODER_DEV_SHIM}"wsproxy delete local-proxy||true
185185
# Create the proxy
186-
proxy_session_token=$("${CODER_DEV_SHIM}"proxy create --name=local-proxy --display-name="Local Proxy" --icon="/emojis/1f4bb.png" --only-token)
186+
proxy_session_token=$("${CODER_DEV_SHIM}"wsproxy create --name=local-proxy --display-name="Local Proxy" --icon="/emojis/1f4bb.png" --only-token)
187187
# Start the proxy
188-
start_cmd PROXY"""${CODER_DEV_SHIM}"proxy server --http-address=localhost:3010 --proxy-session-token="${proxy_session_token}" --primary-access-url=http://localhost:3000
188+
start_cmd PROXY"""${CODER_DEV_SHIM}"wsproxy server --http-address=localhost:3010 --proxy-session-token="${proxy_session_token}" --primary-access-url=http://localhost:3000
189189
)||echo"Failed to create workspace proxy. No workspace proxy created."
190190
fi
191191

‎scripts/linux-pkg/coder-workspace-proxy.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ CapabilityBoundingSet=CAP_SYSLOG CAP_IPC_LOCK CAP_NET_BIND_SERVICE
2222
KillSignal=SIGINT
2323
KillMode=mixed
2424
NoNewPrivileges=yes
25-
ExecStart=/usr/bin/coder proxy server
25+
ExecStart=/usr/bin/coderworkspace-proxy server
2626
Restart=on-failure
2727
RestartSec=5
2828
TimeoutStopSec=90

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp