acl
This commit is contained in:
parent
cd24af6768
commit
2f9320e270
|
@ -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}.
|
||||
|
||||
|
|
Loading…
Reference in New Issue