From a0fd9e63e0e4fa61697977144049d422caa4b582 Mon Sep 17 00:00:00 2001 From: tigercl Date: Thu, 28 Feb 2019 09:28:37 +0800 Subject: [PATCH] Add data_dir to emqx.conf (#2271) * Add data_dir to emqx.conf --- etc/emqx.conf | 5 +++++ priv/emqx.schema | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/etc/emqx.conf b/etc/emqx.conf index d762aef7e..166fca25c 100644 --- a/etc/emqx.conf +++ b/etc/emqx.conf @@ -166,6 +166,11 @@ node.name = emqx@127.0.0.1 ## Value: String node.cookie = emqxsecretcookie +## Data dir for the node +## +## Value: Folder +node.data_dir = {{ platform_data_dir }} + ## Heartbeat monitoring of an Erlang runtime system. Comment the line to disable ## heartbeat, or set the value as 'on' ## diff --git a/priv/emqx.schema b/priv/emqx.schema index 2136bacad..9e71248a7 100644 --- a/priv/emqx.schema +++ b/priv/emqx.schema @@ -191,6 +191,10 @@ end}. {default, "emqxsecretcookie"} ]}. +{mapping, "node.data_dir", "emqx.data_dir", [ + {datatype, string} +]}. + %% @doc http://erlang.org/doc/man/heart.html {mapping, "node.heartbeat", "vm_args.-heart", [ {datatype, flag},