-
Notifications
You must be signed in to change notification settings - Fork 5
/
defaults.js
60 lines (44 loc) · 1.77 KB
/
defaults.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
var defaults = {
// Transport keys listed here will be automagically loaded from
// the `{MODULE}/transports/` directory, and passed their relevant options.
//
// The only exception is if a module has a `disabled` key listed,
// and set to anything that evaluates to true.
//
// To enable an existing transport, remove its `disabled` key.
// To disable a transport, assign the `disabled` key, or remove the option altogether.
transports: {
// Axon Transport Options
axon: {
// To disable axon transport, un-comment the following line
// disabled: true,
// The location of the module to load
// Relative paths are resolved relative to the federation module
module : 'transports/axon',
// The port that axon binds to for incomign connections
PORT_BIND : 8973,
// The default port Axon connects to on the remote host
// if no port is specified in the connection URL
PORT_CONNECT: 8973
},
// HTTP Transport Options
http: {
// HTTP transport is disabled by default
// Remove the following key to enable
disabled: true,
module : 'transports/http',
// You can make this port 80, but that will require running
// your service as root. We do not recommend such crazyness.
//
// The default HTTP transport is proxy-friendly, so you should
// be able to situate this behind an HA-Proxy or NGINX.
PORT_BIND: 8974,
// The default HTTP port to connect to if none is specified.
PORT_CONNECT: 8974
}
},
// The file path of the routes table to load.
// This is optional, by default all messages are routed locally
table_file: null
}
module.exports = defaults;