mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-30 07:05:06 +03:00
config/config: add some in-config docs
This commit is contained in:
parent
d41da9a97f
commit
b1cd562965
1 changed files with 4 additions and 4 deletions
|
@ -62,13 +62,13 @@ func (s *NodeState) Replace(n NodeConfig) {
|
|||
// options that are necessary for an Yggdrasil node to run. You will need to
|
||||
// supply one of these structs to the Yggdrasil core when starting a node.
|
||||
type NodeConfig struct {
|
||||
Peers []string `comment:"List of connection strings for outbound peer connections in URI format,\ne.g. tcp://a.b.c.d:e or socks://a.b.c.d:e/f.g.h.i:j. These connections\nwill obey the operating system routing table, therefore you should\nuse this section when you may connect via different interfaces."`
|
||||
Peers []string `comment:"List of connection strings for outbound peer connections in URI format,\ne.g. tcp://a.b.c.d:e or tls://a.b.c.d:e or socks://a.b.c.d:e/f.g.h.i:j.\nThese network connections will obey the operating system routing table."`
|
||||
InterfacePeers map[string][]string `comment:"List of connection strings for outbound peer connections in URI format,\narranged by source interface, e.g. { \"eth0\": [ tcp://a.b.c.d:e ] }.\nNote that SOCKS peerings will NOT be affected by this option and should\ngo in the \"Peers\" section instead."`
|
||||
Listen []string `comment:"Listen addresses for incoming connections. You will need to add\nlisteners in order to accept incoming peerings from non-local nodes.\nMulticast peer discovery will work regardless of any listeners set\nhere. Each listener should be specified in URI format as above, e.g.\ntcp://0.0.0.0:0 or tcp://[::]:0 to listen on all interfaces."`
|
||||
Listen []string `comment:"Listen addresses for incoming connections. You will need to add \nlisteners in order to accept incoming peerings from non-local nodes. \nMulticast peer discovery will work regardless of any listeners set \nhere. Listeners must be TCP or TLS in URI format. With TLS an\nadditional layer of encryption is used and may be less performant \nthan tcp://peering. Connections under DPI will appear as TLS."`
|
||||
AdminListen string `comment:"Listen address for admin connections. Default is to listen for local\nconnections either on TCP/9001 or a UNIX socket depending on your\nplatform. Use this value for yggdrasilctl -endpoint=X. To disable\nthe admin socket, use the value \"none\" instead."`
|
||||
MulticastInterfaces []string `comment:"Regular expressions for which interfaces multicast peer discovery\nshould be enabled on. If none specified, multicast peer discovery is\ndisabled. The default value is .* which uses all interfaces."`
|
||||
MulticastInterfaces []string `comment:"Regular expressions can be leveraged to identify multicast interfaces.\nPeer discovery interfaces could be eth* or radio* and none to disable.\nThe default value is .* to match all interfaces. Broadcast UDP packets\nare sent to [ff02::114]:9001, so having a link-local IPv6 addresses is\nrequired to utilize this beaconing feature."`
|
||||
AllowedEncryptionPublicKeys []string `comment:"List of peer encryption public keys to allow incoming TCP peering\nconnections from. If left empty/undefined then all connections will\nbe allowed by default. This does not affect outgoing peerings, nor\ndoes it affect link-local peers discovered via multicast."`
|
||||
EncryptionPublicKey string `comment:"Your public encryption key. Your peers may ask you for this to put\ninto their AllowedEncryptionPublicKeys configuration."`
|
||||
EncryptionPublicKey string `comment:"Your public encryption key. Your peers may ask you for this to put\ninto their AllowedEncryptionPublicKeys configuration.\nTo mine vanity keypairs use command \"go run ./cmd/genkeys/main.go\""`
|
||||
EncryptionPrivateKey string `comment:"Your private encryption key. DO NOT share this with anyone!"`
|
||||
SigningPublicKey string `comment:"Your public signing key. You should not ordinarily need to share\nthis with anyone."`
|
||||
SigningPrivateKey string `comment:"Your private signing key. DO NOT share this with anyone!"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue