-
Notifications
You must be signed in to change notification settings - Fork 886
feat(devtunnel): support geodistributed tunnels #2711
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
Conversation
coderd/devtunnel/servers.go
Outdated
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, | ||
}, | ||
}, | ||
}, | ||
} |
There was a problem hiding this comment.
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.
HostnameWireguard: "pit-1.try.coder.app", | ||
WireguardPort: 55551, |
There was a problem hiding this comment.
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/tunnel.go
Outdated
if cfg.Version == 0 { | ||
cfg.Tunnel = TunnelNode{ | ||
ID: 0, | ||
HostnameHTTPS: "wg-tunnel.coder.app", | ||
HostnameWireguard: "wg-tunnel-udp.coder.app", | ||
WireguardPort: 55555, | ||
} | ||
} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
No description provided.