forked from sadasant/topics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
secret.js
47 lines (34 loc) · 907 Bytes
/
secret.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
// secrets.js
// ==================
//
// Here we store all the private values that are used by
// topics to authenticate with twitter, send emails and
// handle other information, such as sessions storage.
//
// Mongodb secrets
// ---------------
//
exports.mongo_url = 'mongodb://user:pass@stuffhere.mongolab.com:PORT/database'
// E-mail secrets
// --------------
//
exports.mail_to = 'you@you.me'
exports.smtp = {
service : 'Email Provider'
, auth : {
user : 'user@provider.com'
, pass : 'password'
}
}
// Twitter OAuth secrets
// ---------------------
//
exports.twitter = {
consumer_key : 'your key'
, consumer_secret : 'your secret'
, callback : process.env.NODE_ENV === 'production' ? 'http://my.custom.url' : 'http://127.0.0.1:' + (process.env.app_port || process.env.PORT || 5000)
}
// Sessions secrets
// ----------------
//
exports.session = 'session_secret'