-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig-dev.js
More file actions
40 lines (34 loc) · 1.16 KB
/
config-dev.js
File metadata and controls
40 lines (34 loc) · 1.16 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
const path = require('path');
module.exports = {
log: '/tmp/linux-remote.log',
errLog: '/tmp/linux-remote-err.log',
/* Website listen port. default: 3001 */
port: 3000,
host: '192.168.56.101', //
// selfsigned ?
// https://github.com/jfromaniello/selfsigned
cookie: {
secure: true,
sameSite: 'None'
},
secure : {
keyPath: path.join(__dirname, 'dev_ssl/192.168.56.101/server.key'),
certPath: path.join(__dirname, 'dev_ssl/192.168.56.101/server.crt')
}, // http model, default: null.
/*
// Provide an Object to enter https model:
secure: {
keyPath: '/xxx/xxx',
keyPath pfxPath 基础验证:其它人不可读写。
certPath: '/xxx/xxx',
caPath: '/xxx/xxx', // Optionally
//... Other options same as https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options
// and cert, key, ca will take precedence.
// keyPath or pfxPath primisonn Authority is too large.
// chown linux-remote keyfile
// chmod 400 keyfile
}
*/
trustProxy: false, // Boolean, If you used proxy, You need set it. Otherwise, you will not get the real IP when you login.
client: 'http://127.0.0.1:4000'
};