Compare commits

...

3 Commits

Author SHA1 Message Date
Paolo Asperti f632156a4c
updated docs 2023-07-17 14:28:08 +02:00
Paolo Asperti 7454aa6699
we don't need all tags, just latest
continuous-integration/drone/tag Build is passing Details
2022-03-10 09:55:49 +01:00
Paolo Asperti 003b2360b2 OS upgrade
continuous-integration/drone/tag Build is passing Details
2021-12-12 11:32:44 +00:00
3 changed files with 10 additions and 4 deletions

View File

@ -12,12 +12,10 @@ steps:
repo: docker.asperti.com/paspo/mqtt
tags:
- latest
- ${DRONE_TAG}
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}
force_tag: true
username:
from_secret: docker_username
trigger:
event:
- tag
- tag

View File

@ -1,4 +1,4 @@
FROM alpine:3.14
FROM alpine:3.15
RUN \
apk -U upgrade && apk add mosquitto mosquitto-clients openssl && \
echo "log_dest stdout" >/etc/mosquitto/mosquitto.conf && \

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
```