-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.toml
More file actions
73 lines (66 loc) · 1.5 KB
/
config.example.toml
File metadata and controls
73 lines (66 loc) · 1.5 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
# COPY THIS TO config.toml
[misc]
debugLogging = false
# if enabled, all logging goes to the file. Warn and up goes to stderr, too.
# logfile = "/var/log/spaceDevices2.log"
[server]
host = "0.0.0.0"
port = 9000
https = false
# optional if https is false
keyFile = "...your.key"
# optional if https is false
certFile = "...your.cer"
[mqtt]
url = "tls://server:8883"
# optional
certFile = "server.cert.pem"
username = "user"
password = "pass"
sessionTopic = "/net/wlan-sessions"
devicesTopic = "/net/devices"
# after this amount of minutes without any data from the sessions toptic, the program will be killed
# a value < 1 will disable this check
watchDogTimeoutInMinutes = 5
[[location]]
name = "Bar"
ids = [1, 2]
[[location]]
name = "Club"
ids = [4]
[macDb]
# JSON file, NOT modified by the app
# Format:
#{
# "00:01:02:03:04:05": {
# "name": "a name",
# "device-type": "a type",
# "visibility": "ignore"
# },
# "aa:bb:cc:dd:ee:ff": {
# "name": "another name",
# "device-type": "server",
# "visibility": "ignore"
# },
masterFile = "masterDb.json"
# JSON file, modified by this app
# Format:
#{
# "00:01:02:03:04:05": {
# "name": "a name",
# "visibility": "show",
# "ts": 1427737817755
# },
# "aa:bb:cc:dd:ee:ff": {
# "name": "another name",
# "visibility": "show",
# "ts": 1427737817755
# },
userFile = "userDb.json"
# mqtt: {
# server: 'tls://spacegate.mainframe.lan',
# ca: extConfFolder + '/spacegate.crt',
# topic: '/net/devices',
# username: 'devices',
# password: '6AroZF3A34E6bocd'
# },