Update the default acl conf
This commit is contained in:
parent
62f0f0ccbc
commit
919aa13221
17
etc/acl.conf
17
etc/acl.conf
|
@ -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}.
|
||||
|
||||
|
|
Loading…
Reference in New Issue