Merge pull request #10381 from zhongwencool/hiden-auto-subscribe-conf
feat: hiden auto_subscribe conf
This commit is contained in:
commit
cf2f00c937
|
@ -1,7 +1,7 @@
|
||||||
%% -*- mode: erlang -*-
|
%% -*- mode: erlang -*-
|
||||||
{application, emqx_auto_subscribe, [
|
{application, emqx_auto_subscribe, [
|
||||||
{description, "Auto subscribe Application"},
|
{description, "Auto subscribe Application"},
|
||||||
{vsn, "0.1.3"},
|
{vsn, "0.1.4"},
|
||||||
{registered, []},
|
{registered, []},
|
||||||
{mod, {emqx_auto_subscribe_app, []}},
|
{mod, {emqx_auto_subscribe_app, []}},
|
||||||
{applications, [
|
{applications, [
|
||||||
|
|
|
@ -31,14 +31,17 @@
|
||||||
namespace() -> "auto_subscribe".
|
namespace() -> "auto_subscribe".
|
||||||
|
|
||||||
roots() ->
|
roots() ->
|
||||||
["auto_subscribe"].
|
[{"auto_subscribe", ?HOCON(?R_REF("auto_subscribe"), #{importance => ?IMPORTANCE_HIDDEN})}].
|
||||||
|
|
||||||
fields("auto_subscribe") ->
|
fields("auto_subscribe") ->
|
||||||
[
|
[
|
||||||
{topics,
|
{topics,
|
||||||
?HOCON(
|
?HOCON(
|
||||||
?ARRAY(?R_REF("topic")),
|
?ARRAY(?R_REF("topic")),
|
||||||
#{desc => ?DESC(auto_subscribe), default => []}
|
#{
|
||||||
|
desc => ?DESC(auto_subscribe),
|
||||||
|
default => []
|
||||||
|
}
|
||||||
)}
|
)}
|
||||||
];
|
];
|
||||||
fields("topic") ->
|
fields("topic") ->
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Hide the `auto_subscribe` configuration items so that they can be modified later only through the HTTP API.
|
Loading…
Reference in New Issue