mirror of
https://github.com/sascha-hemi/spaceDevices.git
synced 2026-03-21 00:04:23 +01:00
73 lines
1.5 KiB
TOML
73 lines
1.5 KiB
TOML
# 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'
|
|
# }, |