module.exports = {
    current: {server: "192.168.1.184", port: "60666",redis:{server:'192.168.1.184',port:'6379',pwd:'smartCost'}},
    local: {server: "localhost", port: "27017"},
    qa: {server: "192.168.1.184", port: "60666"},
    prod: {server: "", port: ""},
    redis_local:{server:'127.0.0.1',port:'6379',pwd:'smartCost'},
    redis_qa:{server:'192.168.1.184',port:'6379',pwd:'smartCost'},
    setupDb:function (env="local") {
        let me = this;
        me.current.server = me[env].server;
        me.current.port = me[env].port;
        me.current.redis=me["redis_"+env];
    },
    options:{
            "user": "",
            "pass": "",
            "auth": {
                "authdb": ""
            },
            "server": {
                 "socketOptions": {
                 "connectTimeoutMS": 20000
                }
            }
        }
}