summaryrefslogtreecommitdiff
path: root/rvi_backend.config
diff options
context:
space:
mode:
Diffstat (limited to 'rvi_backend.config')
-rw-r--r--rvi_backend.config135
1 files changed, 135 insertions, 0 deletions
diff --git a/rvi_backend.config b/rvi_backend.config
new file mode 100644
index 0000000..e403b33
--- /dev/null
+++ b/rvi_backend.config
@@ -0,0 +1,135 @@
+%% -*- 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 vehicle.config file for documentation and hints
+%% -----------------------------------------------
+
+[
+ {apps,
+ [kernel,
+ stdlib,
+ sasl,
+ {setup, load},
+ syntax_tools,
+ lager,
+ crypto,
+ public_key,
+ exo,
+ compiler,
+ ssl,
+ asn1,
+ wse,
+
+ rvi,
+ rvi_common,
+ service_edge,
+ service_discovery,
+ authorize,
+ schedule,
+ data_link_bert_rpc,
+ protocol ]},
+
+ {env,
+ [
+ {lager,
+ [ { handlers,
+ [{lager_console_backend, debug}]
+ }
+ ]
+ },
+
+ {rvi,
+ [
+ { node_address, "172.16.0.37:8807" },
+ { node_service_prefix, "jlr.com/backend/"},
+
+ { static_nodes,
+ [
+ %% We are the backend server. No need.
+ ]
+ },
+
+ { components,
+ [
+ { service_edge,
+ %% This is the URL that local services use to connect to
+ %% the RVI system. It is also used by
+ %% the other components below to send inter-compoonent
+ %% JSON-RPC calls to the service edge.
+ %%
+ %% For this component url and exo_http_opts should always be specified
+ %% so that local services have a HTTP port to connect to.
+ %%
+ %% gen_server can also be specified to enable faster, native erlang
+ %% inter compojnent communication.
+ %%
+ %% The host and address given in URL should route to the port given
+ %% in exo_http_opts below.
+ %%
+ %% The web socket integrates with the rvi.js javascript code
+ %% that connects Tizen IVI to the RVI system.
+ [ { service_edge_rpc, gen_server,
+ [
+ { json_rpc_address, { "127.0.0.1", 8801 } },
+ { websocket, [ { port, 8808}]}
+ ]
+ }
+ ]
+ },
+ { service_discovery,
+ [ { service_discovery_rpc, gen_server,
+ [
+ { json_rpc_address, { "127.0.0.1", 8802 }}
+ ]
+ }
+ ]
+ },
+ { schedule,
+ [ { schedule_rpc, json_rpc,
+ [
+ { json_rpc_address, { "127.0.0.1", 8803 }}
+ ]
+ }
+ ]
+ },
+ { authorize,
+ [ { authorize_rpc, gen_server,
+ [
+ { json_rpc_address, { "127.0.0.1", 8804 } }
+ ]
+ }
+ ]
+ },
+ { protocol,
+ [ { protocol_rpc, gen_server,
+ [
+ { json_rpc_address, { "127.0.0.1", 8805 } }
+ ]
+ }
+ ]
+ },
+ { data_link,
+ [ { data_link_bert_rpc_rpc, gen_server,
+ [
+ { json_rpc_address, { "127.0.0.1", 8806 } },
+ { bert_rpc_server, [ { port, 8807 }]}
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]}
+]}
+
+].