Skip to content
Frederik Walk edited this page Mar 15, 2016 · 1 revision

msgpd is a daemon which manages:

  • Serving the user frontend via http
  • Websocket connections to user frontends and devices
  • Communication between user frontends and devices
  • User database access and value storage
  • Device database access

Supported parameters are:

  • -config=<config file> : defines the path to the configuration file

Configuration file format:

# Address the http server listens on
listen = "[::1]:8080"

assets-dir    = "./assets"
templates-dir = "./templates"
db-dir        = "./"

# Enable admin operations via http api (Do not use in production!)
motherlode = true

# Database configuration
[postgres]
user     = "msgp"
password = "msgp"
database = "msgp"
address  = "localhost"
port     = "5432"

# Database benchmark options
[benchmark]
# Caution: Benchmark empties database!
do-benchmark = false
users        = 20
devices      = 1000
sensors      = 10
duration     = 5 # in minutes
Clone this wiki locally