forked from asbjornu/drywall
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js.tmpl
88 lines (86 loc) · 2.27 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
'use strict';
exports.port = process.env.PORT || (process.env.NODE_ENV == 'test' ? 3001 : 3000);
exports.logging = {
// Set this to true if you want extensive logging.
debug: false,
error: true
};
exports.companyName = 'Acme, Inc.';
exports.projectName = 'Drywall';
exports.systemEmail = 'your@email.addy';
exports.cryptoKey = 'k3yb0ardc4t';
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 || 'your@email.addy'
},
credentials: {
user: process.env.SMTP_USERNAME || 'your@email.addy',
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 || ''
}
};
exports.db = {
development: {
username: '<username>',
password: '<password>',
database: '<database>',
host: '127.0.0.1',
dialect: 'postgres',
// Logging is turned on.
logging: true,
force: false
},
test: {
username: '<username>',
password: '<password>',
// We recommend using another database for the tests,
// since it can then be reset (forced) on every run
// of the tests
database: '<test-database>',
host: '127.0.0.1',
dialect: 'postgres',
// Just turn logging on if a test fails and you believe
// it's related to the database.
logging: false,
// Reset the test database on every run of the tests.
force: true
},
production: {
username: '<username>',
password: '<password>',
database: '<database>',
host: '127.0.0.1',
dialect: 'postgres',
force : false
}
}