1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

update nanomq

This commit is contained in:
kev 2024-05-27 11:56:02 +08:00
parent 518061b7d0
commit bab4d5bed2
3 changed files with 13 additions and 2 deletions

10
nanomq/data/etc/acl.conf Normal file
View 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"}
]

View File

@ -57,8 +57,8 @@ auth {
max_size = 32 max_size = 32
ttl = 1m ttl = 1m
} }
# password = {include "/etc/nanomq_pwd.conf"} password = {include "/etc/nanomq/pwd.conf"}
# acl = {include "/etc/nanomq_acl.conf"} acl = {include "/etc/nanomq/acl.conf"}
} }
sqlite { sqlite {

1
nanomq/data/etc/pwd.conf Normal file
View File

@ -0,0 +1 @@
username:password