Add data_dir to emqx.conf (#2271)

* Add data_dir to emqx.conf
This commit is contained in:
tigercl 2019-02-28 09:28:37 +08:00 committed by turtleDeng
parent c8b243ed22
commit a0fd9e63e0
2 changed files with 9 additions and 0 deletions

View File

@ -166,6 +166,11 @@ node.name = emqx@127.0.0.1
## Value: String ## Value: String
node.cookie = emqxsecretcookie 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 monitoring of an Erlang runtime system. Comment the line to disable
## heartbeat, or set the value as 'on' ## heartbeat, or set the value as 'on'
## ##

View File

@ -191,6 +191,10 @@ end}.
{default, "emqxsecretcookie"} {default, "emqxsecretcookie"}
]}. ]}.
{mapping, "node.data_dir", "emqx.data_dir", [
{datatype, string}
]}.
%% @doc http://erlang.org/doc/man/heart.html %% @doc http://erlang.org/doc/man/heart.html
{mapping, "node.heartbeat", "vm_args.-heart", [ {mapping, "node.heartbeat", "vm_args.-heart", [
{datatype, flag}, {datatype, flag},