mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
update nanomq
This commit is contained in:
parent
518061b7d0
commit
bab4d5bed2
10
nanomq/data/etc/acl.conf
Normal file
10
nanomq/data/etc/acl.conf
Normal file
@ -0,0 +1,10 @@
|
||||
rules = [
|
||||
## Allow MQTT client using username "dashboard" to subscribe to "$SYS/#" topics
|
||||
{"permit": "allow", "username": "dashboard", "action": "subscribe", "topics": ["$SYS/#"]}
|
||||
|
||||
## Deny "All Users" subscribe to "$SYS/#" "#" Topics
|
||||
{"permit": "deny", "username": "#", "action": "subscribe", "topics": ["$SYS/#", "#"]}
|
||||
|
||||
## Allow any other publish/subscribe operation
|
||||
{"permit": "allow"}
|
||||
]
|
@ -57,8 +57,8 @@ auth {
|
||||
max_size = 32
|
||||
ttl = 1m
|
||||
}
|
||||
# password = {include "/etc/nanomq_pwd.conf"}
|
||||
# acl = {include "/etc/nanomq_acl.conf"}
|
||||
password = {include "/etc/nanomq/pwd.conf"}
|
||||
acl = {include "/etc/nanomq/acl.conf"}
|
||||
}
|
||||
|
||||
sqlite {
|
||||
|
1
nanomq/data/etc/pwd.conf
Normal file
1
nanomq/data/etc/pwd.conf
Normal file
@ -0,0 +1 @@
|
||||
username:password
|
Loading…
Reference in New Issue
Block a user