summaryrefslogtreecommitdiff
path: root/priv/config
diff options
context:
space:
mode:
authorUlf Wiger <ulf@wiger.net>2015-05-26 20:48:09 +0200
committerUlf Wiger <ulf@feuerlabs.com>2015-06-10 11:28:38 +0200
commit28c50bdc233ba30f73aeac9d1fba80521431a263 (patch)
tree9a8862cd7856cdab4f8ebb9573e78d441e6e15f1 /priv/config
parentbd4dd9aeec5da35af21b2c996b05a9618ece568d (diff)
downloadrvi_core-28c50bdc233ba30f73aeac9d1fba80521431a263.tar.gz
add self-provisioning keys + common config
Diffstat (limited to 'priv/config')
-rw-r--r--priv/config/rvi_common.config66
1 files changed, 66 insertions, 0 deletions
diff --git a/priv/config/rvi_common.config b/priv/config/rvi_common.config
new file mode 100644
index 0000000..ef5ff3c
--- /dev/null
+++ b/priv/config/rvi_common.config
@@ -0,0 +1,66 @@
+%% -*- 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 include file for rvi config files
+%%
+Out = filename:absname(proplists:get_value(outdir, OPTIONS)).
+[
+ %% All erlang apps needed to fire up a node. Do not touch.
+ {apps,
+ [kernel,
+ stdlib,
+ sasl,
+ setup,
+ syntax_tools,
+ lager,
+ crypto,
+ public_key,
+ base64url,
+ exo,
+ compiler,
+ ssl,
+ asn1,
+ wse,
+ %% RVI-specific apps.
+
+ %% Do not touch unless you are replacing apps with your own
+ %% version. If you are replacing an app with a non-Erlang version,
+ %% it still has to be loaded in order to resolve.
+ %% If, for example, you want to deploy your own scheduler
+ %% outside Erlang, replace
+ %%
+ %% schedule,
+ %% with
+ %% { schedule, load },
+ %%
+ rvi,
+ rvi_common,
+ service_discovery,
+ service_edge,
+ authorize,
+ schedule,
+ dlink_tcp,
+ proto_bert
+ %% If adding apps, you can still include this config, and complement
+ %% with {add_apps, [App]}, {remove_apps, [App]} and even {sort_app,A,Before}.
+ ]},
+
+ {env,
+ [
+ {setup,
+ [
+ {home, Out}
+ ]},
+ {rvi,
+ [
+ {provisioning_key, "$PRIV_DIR/keys/self_provisioning_key.pem"},
+ {authorize_jwt, "$PRIV_DIR/keys/authorize.jwt"},
+ {cert_dir, "$DATA_DIR/certs"}
+ ]}
+ ]}
+].