rmqtt-plugins 0.16.1

Plugin collection for rmqtt, providing authentication, storage, bridges, clustering, and other extensions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
##--------------------------------------------------------------------

## rmqtt-acl

##--------------------------------------------------------------------



# See more keys and their definitions at https://github.com/rmqtt/rmqtt/blob/master/docs/en_US/acl.md



#Disconnect if publishing is rejected

disconnect_if_pub_rejected = true



rules = [

    #["deny", "all", "subscribe", ["test/nosubscribe"]],

    ["allow", { user = "dashboard" }, "subscribe", ["$SYS/#"]],

    ["allow", { ipaddr = "127.0.0.1" }, "pubsub", ["$SYS/#", "#"]],

    ["deny", "all", "subscribe", ["$SYS/#", { eq = "#" }]],

    ["allow", "all"]

    #["deny", "all"]

]