config.local.js
1.4 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
70
71
72
73
74
/*
* @Descripttion:
* @version:
* @Author: sueRimn
* @Date: 2020-06-28 15:34:13
* @LastEditors: genglw
* @LastEditTime: 2022-08-30 20:30:09
*/
// # 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://47.110.250.177:9201/',
// url: 'http://47.110.250.177:7002/',
ossUrl: 'http://47.110.250.177:7003/',
version: '/v1',
host: '47.110.250.177',
// port: 7002,
port: 9201,
},
excellentRestful: {
url: "http://47.110.250.177:8000/",
version: "/v1",
host: "47.110.250.177",
port: 8000,
},
csrf: {
enabled: false,
options: {
cookie: {
maxAge: maxAge,
key: "_csrf",
path: "/",
httpOnly: true,
sameSite: "strict",
},
ignoreMethods: ["HEAD", "OPTIONS", "GET"],
},
},
output: {
level: 'debug',
colorize: true,
prettyPrint: true
},
liveReload: {
enabled: true,
port: 35729,
},
};
};
exports['@singleton'] = true;