Files
NODE-16/mosquitto/mosquitto.conf
john b4465e0e7f Add mosquitto/mosquitto.conf
Placed in the mqtt/config direcory. The password file has to be 'touched' to get the container to stay up and then you log into the container, remove the file, then use an in-built utility to create a new file , with user name and password
2026-02-04 15:02:18 +00:00

22 lines
421 B
Plaintext

persistence true
persistence_location /mosquitto/data/
log_type subscribe
log_type unsubscribe
log_type websockets
log_type error
log_type warning
log_type notice
log_type information
log_dest file /mosquitto/log/mosquitto.log
log_dest stdout
password_file /mosquitto/data/passwd_file
allow_anonymous false
# MQTT Default listener
listener 1883 0.0.0.0
# MQTT over WebSockets
listener 9001 0.0.0.0
protocol websockets