-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
30 lines (25 loc) · 871 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
var conf = require('nconf');
//conf.env('_');
conf.argv().env().file({file:"./confval.json"});
//-- mongo
conf.set("database:host","linus.mongohq.com");
//conf.set("database:port",10022);
//conf.set("database:name","mxdemo");
//conf.set("database:user","mxuser");
//conf.set("database:password","mxusertest");
//
////-- redis
//conf.set("redis:host","slimehead.redistogo.com");
//conf.set("redis:port",9725);
//conf.set("redis:pass","7b8206717498f7a0763079723fcce249");
//
//// rabbit mq
//conf.set("evtbusamqp_host","tiger.cloudamqp.com");
//conf.set("evtbusamqp_port","5672");
//conf.set("evtbusamqp_login","gttbyzfy");
//conf.set("evtbusamqp_password","s5etXP7ROddzMvncxZU5-LW29KRJlyWZ");
//conf.set("evtbusamqp_vhost","gttbyzfy");
conf.set("testvar","local");
conf.set("deployenv","local");
//console.log('database: ' + conf.get('database'));
exports.conf=conf;