summaryrefslogtreecommitdiff
path: root/priv/setup_device.config
blob: 3ef277082280704f64ddddc087ffe2f3cb9d6c63 (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
%% -*- 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, load }, %% Load, but do not start
   data_link_device,
   protocol ]},

 %%
 %% Custom environment settings
 %%
 {env,
  [
   {lager, 
    [ { handlers, 
	[ {lager_console_backend, debug} ]
      }
    ]
   },
      
   {rvi, 
    [
     { node_address, "127.0.0.1:9991" },   %% Should matcch bert_rpc_server below
     { node_service_prefix, "jlr.com/vin/1234/"},

     { backend_address, "127.0.0.1:9990" }, %% See data_link_device:send_data() for details
     { backend_service_prefix, "jlr.com/backend/" }, 

     { components, 
       [
	{ service_edge, 
	  [ { url, "http://127.0.0.1:8811" },
	    { exo_http_opts, [ { port, 8811 } ] }
	  ]
	},
	{ service_discovery, 
	  [ { url, "http://127.0.0.1:8812" },
	    { exo_http_opts, [ { port, 8812 } ] }
	  ]
	},
	{ schedule, 
	  [ { url, "http://127.0.0.1:8813" },
	    { exo_http_opts, [ { port, 8813 } ] }
	  ]
	},
	{ authorize, 
	  [ { url, "http://127.0.0.1:8814" },
	    { exo_http_opts, [ { port, 8814 } ] }
	  ]
	},
	{ protocol, 
	  [ { url, "http://127.0.0.1:8815" },
	    { exo_http_opts, [ { port, 8815 } ] }
	  ]
	},
	{ data_link, 
	  [ { url, "http://127.0.0.1:8816" },
	    { bert_rpc_server, [ {port, 9991 }]},
	    { exo_http_opts, [ { port, 8816 } ] }
	  ]
	}
       ]
     }
    ]}
]}
].