mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
fix: set default sshMaxTimeout to 60s (#7532)
* fix: set default sshMaxTimeout to 60s * fix
This commit is contained in:
@ -263,7 +263,7 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
Flag: "ssh-max-timeout",
|
Flag: "ssh-max-timeout",
|
||||||
Default: "0",
|
Default: "60s",
|
||||||
Env: "CODER_AGENT_SSH_MAX_TIMEOUT",
|
Env: "CODER_AGENT_SSH_MAX_TIMEOUT",
|
||||||
Description: "Specify the max timeout for a SSH connection.",
|
Description: "Specify the max timeout for a SSH connection.",
|
||||||
Value: clibase.DurationOf(&sshMaxTimeout),
|
Value: clibase.DurationOf(&sshMaxTimeout),
|
||||||
|
2
cli/testdata/coder_agent_--help.golden
vendored
2
cli/testdata/coder_agent_--help.golden
vendored
@ -21,7 +21,7 @@ Starts the Coder workspace agent.
|
|||||||
--prometheus-address string, $CODER_AGENT_PROMETHEUS_ADDRESS (default: 127.0.0.1:2112)
|
--prometheus-address string, $CODER_AGENT_PROMETHEUS_ADDRESS (default: 127.0.0.1:2112)
|
||||||
The bind address to serve Prometheus metrics.
|
The bind address to serve Prometheus metrics.
|
||||||
|
|
||||||
--ssh-max-timeout duration, $CODER_AGENT_SSH_MAX_TIMEOUT (default: 0)
|
--ssh-max-timeout duration, $CODER_AGENT_SSH_MAX_TIMEOUT (default: 60s)
|
||||||
Specify the max timeout for a SSH connection.
|
Specify the max timeout for a SSH connection.
|
||||||
|
|
||||||
--tailnet-listen-port int, $CODER_AGENT_TAILNET_LISTEN_PORT (default: 0)
|
--tailnet-listen-port int, $CODER_AGENT_TAILNET_LISTEN_PORT (default: 0)
|
||||||
|
Reference in New Issue
Block a user