local.js
1.7 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
var path = require('path');
var serviceDir = path.join(__dirname, '..');
var maxAge = 24 * 60 * 60 * 1000;
exports = module.exports = function () {
return {
server: {
host: '0.0.0.0',
port: 3000,
env: 'development',
dir: path.join(serviceDir, 'public'),
engine: 'ejs',
publicPath: '/',
staticServerPath: path.join(serviceDir, 'public'),
cluster: false,
ssl: {
enabled: false,
options: {}
},
staticServer: {
maxAge: maxAge
}
},
logger: {
console: true
},
output: {
},
cookieParser: 'igloo-change-me',
session: {
secret: 'igloo-change-me',
key: 'igloo',
cookie: {
path: '/',
httpOnly: true,
secure: false,
sameSite: 'strict',
maxAge: maxAge
},
resave: true,
saveUninitialized: true
},
notApiRouteRegexp: /^(?!\/__webpack_hmr\/)|(?!\/*.ico).*$/,
redis: {
prefix: 'igloo-development',
host: '127.0.0.1',
port: 6379,
pass: ''
},
proxy: {
target: 'http://47.110.158.110:20000',
apiRouteRegexp: '/api',
ignoreRouters: ['/api/uaa/v1/auth/tokens'],
authUrl: '/uaa/v1/auth/tokens',
refreshUrl: '/uaa/v1/auth/tokens',
signOutUrl: '/signOut',
signInUrl: '/#login',
}
};
};
exports['@singleton'] = true;