8000 chore: switch to new wgtunnel via tunnelsdk by deansheather · Pull Request #6489 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

chore: switch to new wgtunnel via tunnelsdk #6489

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: rename tunnel-host to wgtunnel-host
  • Loading branch information
deansheather committed Mar 21, 2023
commit c90142937e23ef5e573e498a78a16e1c3d7a5317
2 changes: 1 addition & 1 deletion cli/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ flags, and YAML configuration. The precedence is as follows:
)
if cfg.AccessURL.String() == "" {
cmd.Printf("Opening tunnel so workspaces can connect to your deployment. For production scenarios, specify an external access URL\n")
tunnel, err = devtunnel.New(ctx, logger.Named("devtunnel"), cfg.TunnelHost.String())
tunnel, err = devtunnel.New(ctx, logger.Named("devtunnel"), cfg.WgtunnelHost.String())
if err != nil {
return xerrors.Errorf("create tunnel: %w", err)
}
Expand Down
6 changes: 3 additions & 3 deletions coderd/apidoc/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions coderd/apidoc/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions codersdk/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ type DeploymentValues struct {
Support SupportConfig `json:"support,omitempty" typescript:",notnull"`
GitAuthProviders clibase.Struct[[]GitAuthConfig] `json:"git_auth,omitempty" typescript:",notnull"`
SSHConfig SSHConfig `json:"config_ssh,omitempty" typescript:",notnull"`
TunnelHost clibase.String `json:"tunnel_host,omitempty" typescript:",notnull"`
WgtunnelHost clibase.String `json:"wgtunnel_host,omitempty" typescript:",notnull"`

Config clibase.String `js 8000 on:"config,omitempty" typescript:",notnull"`
WriteConfig clibase.Bool `json:"write_config,omitempty" typescript:",notnull"`
Expand Down Expand Up @@ -1354,12 +1354,12 @@ Write out the current server configuration to the path specified by --config.`,
Hidden: true,
},
{
Name: "Custom Tunnel Host",
Name: "Custom wgtunnel Host",
Description: `Hostname of HTTPS server that runs https://github.com/coder/wgtunnel. By default, this will pick the best available wgtunnel server hosted by Coder. e.g. "tunnel.example.com".`,
Flag: "tunnel-host",
Env: "TUNNEL_HOST",
YAML: "tunnelHost",
Value: &c.TunnelHost,
Flag: "wg-tunnel-host",
Env: "WGTUNNEL_HOST",
YAML: "wgtunnelHost",
Value: &c.WgtunnelHost,
Default: "", // empty string means pick best server
Hidden: true,
},
Expand Down
2 changes: 1 addition & 1 deletion docs/api/general.md
8000
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,9 @@ curl -X GET http://coder-server:8080/api/v2/deployment/config \
"enable": true,
"honeycomb_api_key": "string"
},
"tunnel_host": "string",
"update_check": true,
"verbose": true,
"wgtunnel_host": "string",
"wildcard_access_url": {
"forceQuery": true,
"fragment": "string",
Expand Down
6 changes: 3 additions & 3 deletions docs/api/schemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -1870,9 +1870,9 @@ CreateParameterRequest is a structure used to create a new parameter value for a
"enable": true,
"honeycomb_api_key": "string"
},
"tunnel_host": "string",
"update_check": true,
"verb 8000 ose": true,
"wgtunnel_host": "string",
"wildcard_access_url": {
"forceQuery": true,
"fragment": "string",
Expand Down Expand Up @@ -2215,9 +2215,9 @@ CreateParameterRequest is a structure used to create a new parameter value for a
"enable": true,
"honeycomb_api_key": "string"
},
"tunnel_host": "string",
"update_check": true,
"verbose": true,
"wgtunnel_host": "string",
"wildcard_access_url": {
"forceQuery": true,
"fragment": "string",
Expand Down Expand Up @@ -2282,9 +2282,9 @@ CreateParameterRequest is a structure used to create a new parameter value for a
| `telemetry` | [codersdk.TelemetryConfig](#codersdktelemetryconfig) | false | | |
| `tls` | [codersdk.TLSConfig](#codersdktlsconfig) | false | | |
| `trace` | [codersdk.TraceConfig](#codersdktraceconfig) | false | | |
| `tunnel_host` | string | false | | |
| `update_check` | boolean | false | | |
| `verbose` | boolean | false | | |
| `wgtunnel_host` | string | false | | |
| `wildcard_access_url` | [clibase.URL](#clibaseurl) | false | | |
| `write_config` | boolean | false | | |

Expand Down
1 change: 1 addition & 0 deletions site/src/api/typesGenerated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ export interface DeploymentValues {
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- External type
readonly git_auth?: any
readonly config_ssh?: SSHConfig
readonly wgtunnel_host?: string
readonly config?: string
readonly write_config?: boolean
// Named type "github.com/coder/coder/cli/clibase.HostPort" unknown, using "any"
Expand Down
0