-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsample-central.yaml
48 lines (48 loc) · 2.07 KB
/
sample-central.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
dist:
# This is the central distribution public key. Although it is a "public" key, it is also used as a shared secret within the network, so that no outsiders can decrypt the distributed configuration.
key: 7PaN6DmAayz4KnDnsXSXJH+Oy0TFGeoM4FEbQfLriVY=
# Nylon will frequently check these repos/files for updates
repos:
- file:central.nybundle
- https://static.example.com/network1.nybundle
routers:
- id: alice
pubkey: xmfAovAKN4AY5ocK5s+/VsG9I27KrQ13Vzb0HOsLKAs==
prefixes:
- 10.0.0.1/32
- id: bob
pubkey: 4GfHHSyVpXc+wkbjyIIONERa6Xf5EafB0nVGZLf2r2o=
prefixes:
- 10.0.0.2/32
endpoints:
- '192.168.1.1:57175'
- id: eve
pubkey: 2mXTTD+FYdtJm/v1vSHz8qimvCucjW9vY+nLYacXJFE=
prefixes:
- 10.0.0.3/32
- id: public
pubkey: dJcUE1qnXCQ5x8pMhFb/MZab7YrBaaHcrgfbmQI0MW4=
prefixes:
- 10.0.0.4/32
endpoints:
- '123.123.123.123:57175' # nylon supports multiple endpoints, picking the best endpoint dynamically
- '123.123.123.124:57175'
- id: charlie
pubkey: WcCkKijU0brYnRzxk867HTDyYFf/cqiKTTOLSxtWoFc=
prefixes:
- 10.0.0.5/32
clients:
- id: client1
pubkey: SBI+yvF30Ba4xo0GKTtKHSSfbXAnRNFTBwydJyJp6Rk=
prefixes:
- 10.0.0.7/32
graph: # The graph determines which nodes will attempt/can peer with each other. Nodes will only connect to each other once they have been connected directly in the graph.
- Group1 = alice, bob # Groups are a convenient way to connect many nodes. Nodes within groups are not automatically connected
- Group1, Group1 # You can emulate that behaviour by connecting a group to its self
- Group2 = Group1, client1 # You can use groups within groups, just make sure there are no cycles
# - Bad = Bad, bob
- client1, eve, alice # You can interconnect multiple nodes at the same time
timestamp: 1740832962209309000 # The timestamp is updated by "./nylon seal" and is used as a version number when checking for config updates.
# Here is a list of domain name overrides that Nylon considers when running the "./nylon hosts" command.
hosts:
nylon.encodeous.ca: public