From 919aa132218f9986878e8c4897c661517a9597dd Mon Sep 17 00:00:00 2001 From: Feng Lee Date: Tue, 27 Aug 2019 10:03:30 +0800 Subject: [PATCH] Update the default acl conf --- etc/acl.conf | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/etc/acl.conf b/etc/acl.conf index b60ea5e7a..af2fb0dd1 100644 --- a/etc/acl.conf +++ b/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}. +