diff options
Diffstat (limited to 'components/dlink_tcp/priv/setup.config')
-rw-r--r-- | components/dlink_tcp/priv/setup.config | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/components/dlink_tcp/priv/setup.config b/components/dlink_tcp/priv/setup.config new file mode 100644 index 0000000..9fe04fc --- /dev/null +++ b/components/dlink_tcp/priv/setup.config @@ -0,0 +1,42 @@ +%% -*- erlang -*- +[ + %% Put include first, making it possible to override any defaults below + {include_lib, "exoport/priv/setup.config"}, + %% + %% Add our own app(s) + {add_apps, [asn1, + ssl, + { rvi_common, load}, + data_link_device]}, + %% + %% Custom environment settings + {env, + [ + {setup, [{data_dir, "db"}]}, + %% Tell exoport where to find our config file + {exoport, + [ + {config, filename:join(CWD, "exoport.config")}, + {access, + [{redirect, [{data_link, data_link_device_rpc}]}, + {accept, data_link_device_rpc} + ]}, + {kvdb_databases, + [{kvdb_conf, + [{file,"$DATA_DIR/kvdb_conf.db"}, + {backend,ets}, + {log_dir, "$DATA_DIR/kvdb_conf.log"}, + {log_threshold, [{writes, 1000}]}, + {save_mode, [on_switch, on_close]}, + {tables,[data]}, + {encoding,{raw,term,term}}, + {schema,kvdb_schema_events}]} + ]} + ]} + %% %% We run with a logging ETS backend in the database + %% {kvdb, + %% [ + %% ]} + %% ]} + ]} +]. |