You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
732 B
34 lines
732 B
/* |
|
** mosca.conf.js -- Mosca standalone server configuration |
|
*/ |
|
|
|
var mosca = require("@l_prefix@/lib/mosca") |
|
|
|
module.exports = { |
|
host: "127.0.0.1", |
|
port: 4883, |
|
id: "example", |
|
stats: true, |
|
logger: { |
|
level: "info" |
|
}, |
|
backend: { |
|
type: "redis", |
|
host: "127.0.0.1", |
|
port: 6379, |
|
password: "local-secret", |
|
return_buffers: true |
|
}, |
|
persistence: { |
|
factory: mosca.persistence.Redis, |
|
channel: "mosca", |
|
host: "127.0.0.1", |
|
port: 6379, |
|
password: "local-secret" |
|
}, |
|
secure: { |
|
certPath: "@l_prefix@/etc/x509/example-server.crt.pem", |
|
keyPath: "@l_prefix@/etc/x509/example-server.key.pem" |
|
} |
|
} |
|
|
|
|