updated docs

This commit is contained in:
Paolo Asperti 2023-07-17 14:28:08 +02:00
parent 7454aa6699
commit f632156a4c
Signed by: paspo
GPG Key ID: 06D46905D19D5182
1 changed files with 8 additions and 0 deletions

View File

@ -30,6 +30,7 @@ services:
```
This is the configuration (mosquitto.conf):
```
listener 8883
certfile /data/live/domain/cert.pem
@ -47,7 +48,14 @@ psk_file /etc/mosquitto/pskfile
The first port is used with a passwd file, that you can create in the usual way.
You also need to create a file named "pskfile" to access the "secondary" port, with this syntax:
```
user1:password1
user2:password2
```
## password update
```sh
docker compose exec server mosquitto_passwd -b /etc/mosquitto/passwd username StrongPa$$w0rd
```