-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.js
64 lines (55 loc) · 1.69 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
'use strict';
exports.port = process.env.OPENSHIFT_NODEJS_PORT || 3000;
exports.ipAddress = process.env.OPENSHIFT_NODEJS_IP || '127.0.0.1';
var mongodb = {
name: 'fr0stbyte'
};
exports.mongodb = mongodb;
exports.mongoose = {
uri: process.env.OPENSHIFT_MONGODB_DB_URL + process.env.OPENSHIFT_APP_NAME || 'localhost/' + mongodb.name
};
exports.mongoskin = {
uri: process.env.OPENSHIFT_MONGODB_DB_URL + process.env.OPENSHIFT_APP_NAME || 'mongodb://localhost/' + mongodb.name
};
exports.companyName = '';
exports.projectName = '';
exports.systemEmail = '';
exports.apn = {
key: process.env.APN_KEY || null
};
exports.gcm = {
key: process.env.GCM_KEY || null
};
exports.hmac = {
secret: process.env.SERVER_SECRET || '1234567890',
check: {
amount: 2, // Number
type: 'minutes' // moment.js manipulation key ["years", "months", "minutes"] etc.
},
encoding: "base64",
algorithm: "sha256",
validFor: { // additional security for request replay
amount: 1, // Number
type: 'minutes' // moment.js manipulation key ["years", "months", "minutes"] etc.
}
};
exports.queue = {
redis: {
host: process.env.OPENSHIFT_REDIS_HOST || 'localhost',
port: process.env.OPENSHIFT_REDIS_PORT || 6379,
password: process.env.REDIS_PASSWORD || null
},
enabled: true // set to false if you do not need a message queue
};
exports.smtp = {
from: {
name: process.env.SMTP_FROM_NAME || exports.projectName +' Website',
address: process.env.SMTP_FROM_ADDRESS || '[email protected]'
},
credentials: {
user: process.env.SMTP_USERNAME || '[email protected]',
password: process.env.SMTP_PASSWORD || '',
host: process.env.SMTP_HOST || 'smtp.example.com',
ssl: true
}
};