Update the default acl conf

This commit is contained in:
Feng Lee 2019-08-27 10:03:30 +08:00
parent 62f0f0ccbc
commit 919aa13221
1 changed files with 8 additions and 9 deletions

View File

@ -1,21 +1,19 @@
%%--------------------------------------------------------------------
%% [ACL](https://docs.emqx.io/broker/v3/en/config.html)
%%
%% [ACL](http://emqtt.io/docs/v2/config.html#allow-anonymous-and-acl-file)
%%
%% -type who() :: all | binary() |
%% -type(who() :: all | binary() |
%% {ipaddr, esockd_access:cidr()} |
%% {client, binary()} |
%% {user, binary()}.
%% {user, binary()}).
%%
%% -type access() :: subscribe | publish | pubsub.
%% -type(access() :: subscribe | publish | pubsub).
%%
%% -type topic() :: binary().
%% -type(topic() :: binary()).
%%
%% -type rule() :: {allow, all} |
%% -type(rule() :: {allow, all} |
%% {allow, who(), access(), list(topic())} |
%% {deny, all} |
%% {deny, who(), access(), list(topic())}.
%%
%% {deny, who(), access(), list(topic())}).
%%--------------------------------------------------------------------
{allow, {user, "dashboard"}, subscribe, ["$SYS/#"]}.
@ -25,3 +23,4 @@
{deny, all, subscribe, ["$SYS/#", {eq, "#"}]}.
{allow, all}.