summaryrefslogtreecommitdiff
path: root/priv/backend.config
blob: e5c6681e4d17e366592d7ed56af5785e235dac1f (plain)
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
%% -*- erlang -*-

%% Copyright (C) 2014, Jaguar Land Rover
%%
%% This program is licensed under the terms and conditions of the
%% Mozilla Public License, version 2.0.  The full text of the 
%% Mozilla Public License is at https://www.mozilla.org/MPL/2.0/
%%
%% Configuration file for the (in-vehicle) IVI used by the hvac_demo
%% See ../hvac_demo/README.md for detai;s
%% 

%% -----------------------------------------------
%% See ivi.config file for documentation and hints
%% -----------------------------------------------

[
 {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_bert_rpc,
   protocol ]},

 {env,
  [
   {lager, 
    [ { handlers, 
	[{lager_console_backend, notice}]
	}
    ]
   },
      
   {rvi, 
    [
     { node_address, "127.0.0.1:8807" }, 
     { node_service_prefix, "jlr.com/backend/"},

     { static_nodes, 
       [ 
	 %% We are the backend server. No need.
       ]
     },

     { components, 
       [
	{ service_edge, 
	  [ { url, "http://127.0.0.1:8801" },
	    { exo_http_opts, [ { port, 8801 } ] }
	  ]
	},
	{ service_discovery, 
	  [ { url, "http://127.0.0.1:8802" },
	    { exo_http_opts, [ { port, 8802 } ] }
	  ]
	},
	{ schedule, 
	  [ { url, "http://127.0.0.1:8803" },
	    { exo_http_opts, [ { port, 8803 } ] }
	  ]
	},
	{ authorize, 
	  [ { url, "http://127.0.0.1:8804" },
	    { exo_http_opts, [ { port, 8804 } ] }
	  ]
	},
	{ protocol, 
	  [ { url, "http://127.0.0.1:8805" },
	    { exo_http_opts, [ { port, 8805 } ] }
	  ]
	},
	{ data_link, 
	  [ 
	    { url, "http://127.0.0.1:8806" },
	    { exo_http_opts, [ { port, 8806 } ] },
	    { bert_rpc_server, [ { port, 8807 }]}
	  ]

	}
       ]
     }
    ]}
]}

].