diff --git a/rel/files/acl.config b/rel/files/acl.config index a071ab12d..20cfa0257 100644 --- a/rel/files/acl.config +++ b/rel/files/acl.config @@ -1,7 +1,18 @@ -{allow, {ipaddr, "127.0.0.1"}, subscribe, "$SYS/#"}. -{deny, all, subscribe, "$SYS/#"}. + +{allow, {ipaddr, "127.0.0.1"}, subscribe, ["$SYS/#", "#"]}. + +{allow, {user, "testuser"}, subscribe, ["a/b/c", "d/e/f/#"]}. + +{allow, {user, "admin"}, pubsub, ["a/b/c", "d/e/f/#"]}. + +{allow, {client, "testClient"}, subscribe, ["testTopics/testClient"]}. + +{allow, all, subscribe, ["clients/$c"]}. + +{allow, all, subscribe, ["users/$u/#"]}. + +{deny, all, subscribe, ["$SYS/#", "#"]}. {allow, all}. -