test: enable mosquitto password auth; add mqttping endpoint; use credentials in subscriber; publish defaults

This commit is contained in:
2025-12-28 15:24:12 +01:00
parent 8fd9353068
commit c835fb7a98
5 changed files with 86 additions and 41 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
# Allow external connections on port 1883
# listen on all interfaces
listener 1883 0.0.0.0
allow_anonymous true
# do not allow anonymous in this test stack; require password_file
allow_anonymous false
password_file /mosquitto/config/passwordfile
# Increase persistence location so container can map volume if needed
persistence true
persistence_location /mosquitto/data/