summaryrefslogtreecommitdiff
path: root/priv/setup_backend.config
diff options
context:
space:
mode:
Diffstat (limited to 'priv/setup_backend.config')
-rw-r--r--priv/setup_backend.config96
1 files changed, 96 insertions, 0 deletions
diff --git a/priv/setup_backend.config b/priv/setup_backend.config
new file mode 100644
index 0000000..596244d
--- /dev/null
+++ b/priv/setup_backend.config
@@ -0,0 +1,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 } ] }
+ ]
+
+ }
+ ]
+ }
+ ]}
+]}
+
+].