forked from freifunkMUC/wgkex
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wgkex.yaml.example
53 lines (53 loc) · 1.3 KB
/
wgkex.yaml.example
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
49
50
51
52
53
# [broker, worker] The domains that should be accepted by clients and for which matching WireGuard interfaces exist
domains:
- ffmuc_muc_cty
- ffmuc_muc_nord
- ffmuc_muc_ost
- ffmuc_muc_sued
- ffmuc_muc_west
- ffmuc_welt
- ffwert_city
# [broker, worker] The prefix is trimmed from the domain name and replaced with 'wg-' and 'vx-'
# to calculate the WireGuard and VXLAN interface names
domain_prefixes:
- ffmuc_
- ffdon_
- ffwert_
# [broker] The dict of workers mapping their hostname to their respective weight for weighted peer distribution
workers:
gw04.in.ffmuc.net:
weight: 30
gw05.in.ffmuc.net:
weight: 30
gw06.in.ffmuc.net:
weight: 20
gw07.in.ffmuc.net:
weight: 20
# [worker] The external hostname of this worker
externalName: gw04.ext.ffmuc.net
# [broker, worker] MQTT connection informations
mqtt:
broker_url: broker.hivemq.com
broker_port: 1883
username: user
password: SECRET
keepalive: 5
tls: False
# [broker]
broker_listen:
host: 0.0.0.0
port: 5000
# [broker, worker]
logging_config:
formatters:
standard:
format: '%(asctime)s,%(msecs)d %(levelname)-8s [%(filename)s:%(lineno)d] %(message)s'
handlers:
console:
class: logging.StreamHandler
formatter: standard
root:
handlers:
- console
level: DEBUG
version: 1