forked from levhita/osomtalk
-
Notifications
You must be signed in to change notification settings - Fork 3
/
app_config.js.tmpl
42 lines (37 loc) · 1.49 KB
/
app_config.js.tmpl
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
31
32
33
34
35
36
37
38
39
40
41
42
(function (global){
var config = 'development';
//var config = 'testing';
//var config = 'production';
global.AppConfig = {
consumer_key: "",
consumer_secret: "",
cookie_secret: "",
session_expire: 7200
};
if (config=='development') {
global.AppConfig.osomtalk_chat = "mongodb://localhost/osomtalk";
global.AppConfig.use_redis = true;
global.AppConfig.port = 3000;
global.AppConfig.osomtalk_session = {host: "localhost", pass: "", port: 6379};
} else if (config=='production') {
global.AppConfig.osomtalk_chat= "mongodb://user:[email protected]:108/osomtalk";
global.AppConfig.use_redis= false;
global.AppConfig.port = 80;
global.AppConfig.osomtalk_session = {
string: "redis://nodejitsu:nodejitsudb76500.redis.irstack.com:[email protected]:6389",
host: "nodejitsudb76500.redis.irstack.com",
pass: "nodejitsudb76500.redis.irstack.com:f327cfe980c5fbebb4",
port: 6389
};
} else if (config=='testing') {
global.AppConfig.osomtalk_chat= "mongodb://user:[email protected]:108/osomtalk";
global.AppConfig.use_redis = true;
global.AppConfig.port = 3000;
global.AppConfig.osomtalk_session = {
string: "redis://nodejitsu:nodejitsudb76500.redis.irstack.com:[email protected]:6389",
host: "nodejitsudb76500.redis.irstack.com",
pass: "nodejitsudb76500.redis.irstack.com:f327cfe980c5fbebb4",
port: 6389
};
}
}(typeof window === 'undefined' ? exports : window));