This commit is contained in:
Ery Lee 2015-03-27 21:14:59 +08:00
parent cd24af6768
commit 2f9320e270
1 changed files with 14 additions and 3 deletions

View File

@ -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}.