acl.conf 389 B

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