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
|
%% -*- erlang -*-
[
%% Put include first, making it possible to override any defaults below
%%
%% Add our own app(s)
{apps,
[kernel,
stdlib,
sasl,
{setup, load},
syntax_tools,
lager,
crypto,
public_key,
exo,
bert,
compiler,
ssl,
asn1,
rvi,
rvi_common,
service_edge,
service_discovery,
authorize,
schedule,
data_link_backend,
{data_link_device, load}, %% Load, but do not start.
protocol ]},
%%
%% Custom environment settings
%%
{env,
[
{lager,
[ { handlers,
[{lager_console_backend, debug}]
}
]
},
{rvi,
[
{ node_address, "localhost:9990" }, %% Should match bert_rpc_server below
{ node_service_prefix, "jlr.com/backend/"},
{ backend_address, "localhost:9990" },
{ backend_service_prefix, "jlr.com/backend/" },
%% Fire up a bert rpcserver for the backend data link module.
{ components,
[
{ service_edge,
[ { url, "http://localhost:8801" },
{ exo_http_opts, [ { port, 8801 } ] }
]
},
{ service_discovery,
[ { url, "http://localhost:8802" },
{ exo_http_opts, [ { port, 8802 } ] }
]
},
{ schedule,
[ { url, "http://localhost:8803" },
{ exo_http_opts, [ { port, 8803 } ] }
]
},
{ authorize,
[ { url, "http://localhost:8804" },
{ exo_http_opts, [ { port, 8804 } ] }
]
},
{ protocol,
[ { url, "http://localhost:8805" },
{ exo_http_opts, [ { port, 8805 } ] }
]
},
{ data_link,
[
%% Listen to port 9990 for incoming calls. Must match
%% the port specified for node_address, which is used by
%% remote nodes to address this node.
{ bert_rpc_server, [ { port, 9990 }]},
{ url, "http://localhost:8806" },
{ exo_http_opts, [ { port, 8806 } ] }
]
}
]
}
]}
]}
].
|