32 lines
868 B
Plaintext
32 lines
868 B
Plaintext
# Config file for mosquitto
|
|
per_listener_settings true
|
|
|
|
# Port to use for the default listener.
|
|
listener 1883
|
|
allow_anonymous true
|
|
|
|
# Port to use for the default listener with authentication.
|
|
listener 1884
|
|
password_file /mosquitto/config/mosquitto.passwd
|
|
allow_anonymous false
|
|
|
|
# =================================================================
|
|
# Extra listeners
|
|
# =================================================================
|
|
|
|
# TLS listener without client certificate requirement
|
|
listener 8883
|
|
cafile /mosquitto-certs/ca.crt
|
|
certfile /mosquitto-certs/server.crt
|
|
keyfile /mosquitto-certs/server.key
|
|
require_certificate false
|
|
allow_anonymous true
|
|
|
|
# TLS listener with client certificate requirement
|
|
listener 8884
|
|
cafile /mosquitto-certs/ca.crt
|
|
certfile /mosquitto-certs/server.crt
|
|
keyfile /mosquitto-certs/server.key
|
|
require_certificate true
|
|
allow_anonymous true
|