/*
**  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"
    }
}

