Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
Paolo Asperti | f632156a4c | |
Paolo Asperti | 7454aa6699 | |
Paolo Asperti | 003b2360b2 |
|
@ -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
|
||||
|
|
|
@ -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 && \
|
||||
|
|
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue