-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
57 lines (56 loc) · 1.56 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
'use strict';
exports.port = process.env.PORT || 4000;
exports.redis = {
host: process.env.REDIS_HOST || '127.0.0.1',
port: process.env.REDIS_PORT || 6379
};
exports.mongodb = {
uri: process.env.MONGOLAB_URI || process.env.MONGOHQ_URL || 'mongodb://localhost:27017/linkgo'
};
exports.emqtt = {
uri: process.env.EMQTT_URI || 'http://localhost:10183'
}
exports.companyName = 'Linkgo LLC.';
exports.projectName = 'linklike';
exports.systemEmail = '[email protected]';
exports.cryptoKey = 'eb3EcomyI7';
exports.loginAttempts = {
forIp: 50,
forIpAndUser: 7,
logExpiration: '20m'
};
exports.requireAccountVerification = false;
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 || 'bl4rg!',
host: process.env.SMTP_HOST || 'smtp.gmail.com',
ssl: true
}
};
exports.oauth = {
twitter: {
key: process.env.TWITTER_OAUTH_KEY || '',
secret: process.env.TWITTER_OAUTH_SECRET || ''
},
facebook: {
key: process.env.FACEBOOK_OAUTH_KEY || '',
secret: process.env.FACEBOOK_OAUTH_SECRET || ''
},
github: {
key: process.env.GITHUB_OAUTH_KEY || '',
secret: process.env.GITHUB_OAUTH_SECRET || ''
},
google: {
key: process.env.GOOGLE_OAUTH_KEY || '',
secret: process.env.GOOGLE_OAUTH_SECRET || ''
},
tumblr: {
key: process.env.TUMBLR_OAUTH_KEY || '',
secret: process.env.TUMBLR_OAUTH_SECRET || ''
}
};