-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
110 lines (109 loc) · 2.08 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
'use strict';
/**
* Retrieve the inquirer definition for xcraft-core-etc
*/
module.exports = [
{
type: 'input',
name: 'host',
message: 'hostname or IP',
default: '127.0.0.1',
},
{
type: 'input',
name: 'commanderHost',
message: 'hostname or IP',
default: '',
},
{
type: 'input',
name: 'commanderPort',
message: 'commander port',
validate: function (value) {
return /^[0-9]{1,}$/.test(value);
},
default: '35400',
},
{
type: 'input',
name: 'notifierHost',
message: 'hostname or IP',
default: '',
},
{
type: 'input',
name: 'notifierPort',
message: 'notifier port',
validate: function (value) {
return /^[0-9]{1,}$/.test(value);
},
default: '35800',
},
{
type: 'input',
name: 'timeout',
message: 'TCP timeout',
default: 0,
},
{
type: 'input',
name: 'serverKeepAlive',
message: 'keep-alive for onconnect (server) connections on the server',
default: 15000,
},
{
type: 'input',
name: 'clientKeepAlive',
message: 'keep-alive for connect (client) connections to the server',
default: 6000,
},
{
type: 'confirm',
name: 'noTLS',
message: 'disable TLS',
default: false,
},
{
type: 'input',
name: 'unixSocketId',
message: 'used on *nix for axon bus sockets',
default: '',
},
{
type: 'confirm',
name: 'acceptIncoming',
message: 'enable new connections immediately',
default: true,
},
{
type: 'confirm',
name: 'shutdownRemotes',
message: 'shutdown remote hordes',
default: false,
},
{
type: 'input',
name: 'keyPath',
message: 'path on a server key file (pem)',
default: '',
},
{
type: 'input',
name: 'certPath',
message: 'path on a server certificate file (pem)',
default: '',
},
{
type: 'input',
name: 'policiesPath',
message: 'security policies file (json)',
default: '',
},
{
type: 'checkbox',
name: 'tribes',
message: 'tribes to deploy multiple nodes',
choices: [],
default: [],
},
];