Преглед на файлове

Add data_dir to emqx.conf (#2271)

* Add data_dir to emqx.conf
tigercl преди 7 години
родител
ревизия
a0fd9e63e0
променени са 2 файла, в които са добавени 9 реда и са изтрити 0 реда
  1. 5 0
      etc/emqx.conf
  2. 4 0
      priv/emqx.schema

+ 5 - 0
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'
 ##

+ 4 - 0
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},