mirror of
https://github.com/cwchristerw/tjas-infra
synced 2025-09-01 11:39:34 +00:00
91 lines
3.3 KiB
Plaintext
91 lines
3.3 KiB
Plaintext
{
|
|
|
|
# List of connection strings for outbound peer connections in URI format,
|
|
# e.g. tcp://a.b.c.d:e or socks://a.b.c.d:e/f.g.h.i:j. These connections
|
|
# will obey the operating system routing table, therefore you should
|
|
# use this section when you may connect via different interfaces.
|
|
|
|
Peers: [
|
|
{% if config.yggdrasil.peers is defined %}
|
|
#TRUSTED PEERS
|
|
{% for peer in config.yggdrasil.peers %}
|
|
{% if peer.name is defined and peer.address is defined and peer.address.ipv4 is defined and peer.address.ipv6 is defined %}
|
|
|
|
#{{ peer.name }}
|
|
"{{ peer.address }}"{% if not loop.last %},{% endif %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
]
|
|
|
|
# List of connection strings for static peers in URI format, arranged
|
|
# by source interface, i.e. { "eth0": [ tcp://a.b.c.d:e ] }. Note that
|
|
# SOCKS peerings will NOT be affected by this option and should go in
|
|
# the "Peers" section instead.
|
|
|
|
InterfacePeers: {}
|
|
|
|
# Listen addresses for incoming connections. You will need to add
|
|
# listeners in order to accept incoming peerings from non-local nodes.
|
|
# Multicast peer discovery will work regardless of any listeners set
|
|
# here. Each listener should be specified in URI format as above, e.g.
|
|
# tls://0.0.0.0:0 or tls://[::]:0 to listen on all interfaces.
|
|
|
|
Listen: [
|
|
"tls://[::]:{{ config.yggdrasil.port }}"
|
|
]
|
|
|
|
# Listen address for admin connections. Default is to listen for local
|
|
# connections either on TCP/9001 or a UNIX socket depending on your
|
|
# platform. Use this value for yggdrasilctl -endpoint=X. To disable
|
|
# the admin socket, use the value "none" instead.
|
|
AdminListen: unix:///var/run/yggdrasil.sock
|
|
|
|
# Regular expressions for which interfaces multicast peer discovery
|
|
# should be enabled on. If none specified, multicast peer discovery is
|
|
# disabled. The default value is .* which uses all interfaces.
|
|
|
|
MulticastInterfaces: []
|
|
|
|
# List of peer public keys to allow incoming peering connections
|
|
# from. If left empty/undefined then all connections will be allowed
|
|
# by default. This does not affect outgoing peerings, nor does it
|
|
# affect link-local peers discovered via multicast.
|
|
|
|
AllowedPublicKeys: []
|
|
|
|
# Your private signing key. DO NOT share this with anyone!
|
|
|
|
PrivateKey: {{ config.yggdrasil['keys']['private'] }}
|
|
|
|
# Local network interface name for TUN/TAP adapter, or "auto" to select
|
|
# an interface automatically, or "none" to run without TUN/TAP.
|
|
|
|
IfName: yggdrasil
|
|
|
|
# Maximux Transmission Unit (MTU) size for your local TUN/TAP interface.
|
|
# Default is the largest supported size for your platform. The lowest
|
|
# possible value is 1280.
|
|
|
|
IfMTU: 65535
|
|
|
|
# By default, nodeinfo contains some defaults including the platform,
|
|
# architecture and Yggdrasil version. These can help when surveying
|
|
# the network and diagnosing network routing problems. Enabling
|
|
# nodeinfo privacy prevents this, so that only items specified in
|
|
# "NodeInfo" are sent back if specified.
|
|
|
|
NodeInfoPrivacy: false
|
|
|
|
# Optional node info. This must be a { "key": "value", ... } map
|
|
# or set as null. This is entirely optional but, if set, is visible
|
|
# to the whole network on request.
|
|
|
|
NodeInfo: {
|
|
"name": "{{ config.yggdrasil.name }}"
|
|
}
|
|
|
|
}
|