Documentation
¶
Overview ¶
Package node runs one Tailscale node: the body of the hidden subcommand the daemon starts for each service on the tailnet (see internal/tsnet).
It lives apart from the router so that the daemon process never links a tsnet.Server into its own goroutines; a panic in here ends this process and nothing else.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Service string
Hostname string
Dir string
AuthKey string
Port int
Verbose bool
// Upstream, when set, is the login gateway's URL. The node then serves
// HTTPS and sends everything there rather than to the service, so the
// tailnet address is behind the same login as the portal.
Upstream string
UpstreamServerName string
// TCP is the service's tcp forwards, served on this node.
TCP []manifest.TCPForward
// AccessSecret lets the node ask the gateway about each forwarded
// connection. Required for forwards when Upstream is set.
AccessSecret string
// Funnel also answers the public internet, through Tailscale Funnel, on
// a listener of its own that sends everything to PublicUpstream: the
// gateway's public listener, which serves only public paths. Needs
// Upstream.
Funnel bool
PublicUpstream string
}
Config is one node.