Skip to content
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

feat(devtunnel): support geodistributed tunnels #2711

Merged
merged 3 commits into from
Jul 1, 2022
Merged

Conversation

coadler
Copy link
Member

@coadler coadler commented Jun 29, 2022

No description provided.

@coadler coadler self-assigned this Jun 29, 2022
Comment on lines 30 to 43
var TunnelRegions = []TunnelRegion{
{
ID: 1,
LocationName: "US East Pittsburgh",
Nodes: []TunnelNode{
{
ID: 1,
HostnameHTTPS: "pit-1.try.coder.app",
HostnameWireguard: "pit-1.try.coder.app",
WireguardPort: 55551,
},
},
},
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be nice if eventually this came from a server with a list of regions.

Comment on lines +38 to +39
HostnameWireguard: "pit-1.try.coder.app",
WireguardPort: 55551,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two fields could be returned by the server instead when it registers

coderd/devtunnel/servers.go Outdated Show resolved Hide resolved
coderd/devtunnel/servers.go Outdated Show resolved Hide resolved
Comment on lines 274 to 281
if cfg.Version == 0 {
cfg.Tunnel = TunnelNode{
ID: 0,
HostnameHTTPS: "wg-tunnel.coder.app",
HostnameWireguard: "wg-tunnel-udp.coder.app",
WireguardPort: 55555,
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this v0 temporary while we upgrade?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this is the old tunnel config. Eventually I'll force people to upgrade.

@coadler coadler merged commit 482feef into main Jul 1, 2022
@coadler coadler deleted the colin/tunnelv2 branch July 1, 2022 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants