test_acl.config 390 B

12345678910111213141516
  1. {allow, {ipaddr, "127.0.0.1"}, subscribe, ["$SYS/#", "#"]}.
  2. {allow, {user, "testuser"}, subscribe, ["a/b/c", "d/e/f/#"]}.
  3. {allow, {user, "admin"}, pubsub, ["a/b/c", "d/e/f/#"]}.
  4. {allow, {client, "testClient"}, subscribe, ["testTopics/testClient"]}.
  5. {allow, all, subscribe, ["clients/$c"]}.
  6. {allow, all, pubsub, ["users/$u/#"]}.
  7. {deny, all, subscribe, ["$SYS/#", "#"]}.
  8. {deny, all}.