first commit

This commit is contained in:
Sthope 2022-04-23 22:04:01 +02:00
parent d794a32247
commit cd70ac3bf3

@ -40,8 +40,14 @@ password_file /mosquitto/config/passwd
```
Create empty file `/mosquitto/config/passwd`
And from the terminal create user sending:
```docker exec -it mqtt usr/bin/mosquitto_passwd -c /mosquitto/config/passwd USERNAME```
And from the terminal create user sending:
```
docker exec -it mqtt usr/bin/mosquitto_passwd -c /mosquitto/config/passwd USERNAME
```
And if you want to add more users use:
```docker exec -it mqtt usr/bin/mosquitto_passwd -b /mosquitto/config/passwd NEW_USERNAME PASSWORD```
```
docker exec -it mqtt usr/bin/mosquitto_passwd -b /mosquitto/config/passwd NEW_USERNAME PASSWORD
```