-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
executable file
·87 lines (65 loc) · 1.66 KB
/
entrypoint.sh
File metadata and controls
executable file
·87 lines (65 loc) · 1.66 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/bash
set -e
# check required env variables
: "${INFLUXDB_URL:? must be set}"
# set some defaults
: "${INFLUXDB_DATABASE:=nodes}"
mkdir -p /config /data /data/meshviewer
cat << EOF > "/config/yanic.toml"
# Send respondd request to update information
[respondd]
enable = true
# Delay startup until a multiple of the period since zero time
synchronize = "1m"
# how often request per multicast
collect_interval = "1m"
[respondd.sites.l]
domains = []
[respondd.sites.m]
domains = ["meshkit"]
[[respondd.interfaces]]
ifname = "bat0"
multicast_address = "ff02::2:1001"
[[respondd.interfaces]]
ifname = "bat0"
multicast_address = "ff05::2:1001"
[[respondd.interfaces]]
ifname = "eth0"
ip_address = "0.0.0.0"
send_no_request = true
port = 10011
[webserver]
enable = false
[nodes]
state_path = "/data/state.json"
prune_after = "120d"
save_interval = "5s"
offline_after = "1h"
# definition for the new more compressed meshviewer.json
[[nodes.output.meshviewer-ffrgb]]
enable = true
path = "/data/meshviewer/meshviewer.json"
[nodes.output.meshviewer-ffrgb.filter]
# WARNING: if it is not set to true, it will publish contact information of other persons
no_owner = false
[[nodes.output.meshviewer]]
enable = false
[[nodes.output.nodelist]]
enable = false
[database]
delete_after = "60d"
delete_interval = "1h"
[[database.connection.influxdb]]
enable = true
address = "${INFLUXDB_URL}"
database = "${INFLUXDB_DATABASE}"
username = ""
password = ""
[[database.connection.graphite]]
enable = false
[[database.connection.respondd]]
enable = false
[[database.connection.logging]]
enable = false
EOF
exec /bin/yanic serve --config /config/yanic.toml