mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-18 02:48:40 +00:00
tsnet: document how to use Dir with multiple servers per process (#8286)
Followup from a conversation on the Gophers slack, also matches the examples in the tsnet kb. Closes #8287 Signed-off-by: Xe Iaso <xe@tailscale.com>
This commit is contained in:
parent
5dd0b02133
commit
43e230d4cd
@ -66,6 +66,12 @@ type Server struct {
|
||||
// state. If empty, a directory is selected automatically
|
||||
// under os.UserConfigDir (https://golang.org/pkg/os/#UserConfigDir).
|
||||
// based on the name of the binary.
|
||||
//
|
||||
// If you want to use multiple tsnet services in the same
|
||||
// binary, you will need to make sure that Dir is set uniquely
|
||||
// for each service. A good pattern for this is to have a
|
||||
// "base" directory (such as your mutable storage folder) and
|
||||
// then append the hostname on the end of it.
|
||||
Dir string
|
||||
|
||||
// Store specifies the state store to use.
|
||||
|
Loading…
x
Reference in New Issue
Block a user