local.js
1.5 KB
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
/*
* @Descripttion:
* @version:
* @Author: sueRimn
* @Date: 2020-06-28 15:34:13
* @LastEditors: genglw
* @LastEditTime: 2021-12-23 14:56:59
*/
// # local config (make sure it is ignored by git)
//
// This configuration file is specific to each developer's environment,
// and will merge on top of all other settings from ./config.js
// (but only will merge in development environment)
//
var maxAge = 60 * 60 * 1000 * 25;
exports = module.exports = function () {
return {
cache: false,
server: {
host: '0.0.0.0',
port: 3000
},
email: {
// <https://github.com/andris9/Nodemailer>
transport: {
service: 'gmail',
auth: {
user: 'user@gmail.com',
pass: 'abc123'
}
}
},
restful: {
// url: 'http://118.178.181.180:20000/',
// url: 'http://47.110.250.177:20000/',
url: 'http://47.110.158.110:20000/',
// url:'http://120.27.220.60:20000/',
// url: 'http://39.104.52.206:20000/',
// url: 'http://47.99.189.12:20000/',
ossUrl: 'http://47.110.250.177:20000/',
version: '/v1',
// host: '47.110.250.177',
host: '47.110.158.110',
// host: '120.27.220.60',
// host: '39.104.52.206',
port: 20000
},
csrf: {
enabled: true,
options: {
cookie: {
maxAge: maxAge,
key: '_csrf',
path: '/',
httpOnly: true,
sameSite: 'strict',
},
ignoreMethods: ['HEAD', 'OPTIONS', 'GET']
}
},
liveReload: {
enabled: true,
port: 35729
}
};
};
exports['@singleton'] = true;