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
This commit is contained in:
21
mosquitto/mosquitto.conf
Normal file
21
mosquitto/mosquitto.conf
Normal file
@@ -0,0 +1,21 @@
|
||||
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
|
||||
Reference in New Issue
Block a user