-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
52 lines (37 loc) · 849 Bytes
/
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
/**
* config
*/
var path = require('path');
var config = {
site_headers: [
'<meta name="author" content="EDP@TAOBAO" />'
],
debug : true,
db: 'mongodb://127.0.0.1:27017/tripstore',
user:'leilei',
auth:'author',
redis_host: '127.0.0.1',
redis_port: 6379,
redis_db: 0,
session_secret: 'trip_secret',
auth_cookie_name: 'hd_club',
port: 3000,
search_topic_count: 20,
mail_opts: {
host: 'smtp.126.com',
port: 25,
auth: {
user: '[email protected]',
pass: 'club'
}
},
upload: {
path: path.join(__dirname, 'public/upload/'),
url: '/public/upload/'
},
file_limit: '1MB'
};
if (process.env.NODE_ENV === 'test') {
config.db = 'mongodb://127.0.0.1:27017/tripstore';
}
module.exports = config;