Add labs
This commit is contained in:
8
04-mosquitto/lab04/config/acl.txt
Normal file
8
04-mosquitto/lab04/config/acl.txt
Normal file
@ -0,0 +1,8 @@
|
||||
topic readwrite freeforall
|
||||
|
||||
pattern readwrite users/%u/#
|
||||
|
||||
topic read announcements
|
||||
|
||||
user thomas
|
||||
topic readwrite announcements
|
||||
9
04-mosquitto/lab04/config/docker-compose.yml
Normal file
9
04-mosquitto/lab04/config/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
services:
|
||||
mosquitto:
|
||||
image: eclipse-mosquitto
|
||||
ports:
|
||||
- "1883:1883"
|
||||
volumes:
|
||||
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
|
||||
- ./users.txt:/mosquitto/config/users.txt:ro
|
||||
- ./acl.txt:/mosquitto/config/acl.txt:ro
|
||||
5
04-mosquitto/lab04/config/mosquitto.conf
Normal file
5
04-mosquitto/lab04/config/mosquitto.conf
Normal file
@ -0,0 +1,5 @@
|
||||
listener 1883
|
||||
|
||||
allow_anonymous true
|
||||
password_file /mosquitto/config/users.txt
|
||||
acl_file /mosquitto/config/acl.txt
|
||||
2
04-mosquitto/lab04/config/users.txt
Normal file
2
04-mosquitto/lab04/config/users.txt
Normal file
@ -0,0 +1,2 @@
|
||||
thomas:$7$101$+0sf4wma3qzDFw6R$H+lLmGLzo1Ex5rXxZqWxuEFCV7bSsAehEwTJ6XULFberEhwug/EC8aSWtiI4xScYQ2u/0sZ3xCg0rTRaMb5ITg==
|
||||
admin:$7$101$S9wXlrBPl3PFz+9y$l3/GP/FjklfQ2inTxBf4FfLvFR3r5yF6G6ZSRDFRwAklzltZ+xhUWM83PKQjxy2ZFYYmHxMoKs4q1+IMrXL6NA==
|
||||
Reference in New Issue
Block a user