Add labs
This commit is contained in:
8
04-mosquitto/lab06/config/acl.txt
Normal file
8
04-mosquitto/lab06/config/acl.txt
Normal file
@ -0,0 +1,8 @@
|
||||
topic readwrite freeforall
|
||||
|
||||
pattern readwrite users/%u/#
|
||||
|
||||
topic read announcements
|
||||
|
||||
user thomas
|
||||
topic readwrite announcements
|
||||
7
04-mosquitto/lab06/config/docker-compose.yml
Normal file
7
04-mosquitto/lab06/config/docker-compose.yml
Normal file
@ -0,0 +1,7 @@
|
||||
services:
|
||||
mosquitto:
|
||||
image: eclipse-mosquitto
|
||||
ports:
|
||||
- "1883:1883"
|
||||
volumes:
|
||||
- ./:/mosquitto/config
|
||||
15
04-mosquitto/lab06/config/mosquitto.conf
Normal file
15
04-mosquitto/lab06/config/mosquitto.conf
Normal file
@ -0,0 +1,15 @@
|
||||
listener 1883
|
||||
|
||||
listener_allow_anonymous true
|
||||
password_file /mosquitto/config/users.txt
|
||||
acl_file /mosquitto/config/acl.txt
|
||||
|
||||
listener 8883
|
||||
listener_allow_anonymous true
|
||||
|
||||
# Nur Leaf-Zertifikat, in Kette fehlt Intermediate
|
||||
# certfile /mosquitto/config/mqtt.trion.dev.cer
|
||||
|
||||
certfile /mosquitto/config/mqtt.trion.dev.fullchain
|
||||
keyfile /mosquitto/config/mqtt.trion.dev.key
|
||||
|
||||
2
04-mosquitto/lab06/config/users.txt
Normal file
2
04-mosquitto/lab06/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