You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.9 KiB
62 lines
1.9 KiB
## |
|
## mosquitto.conf -- Mosquitto configuration |
|
## |
|
|
|
# global settings |
|
pid_file @l_prefix@/var/mosquitto/run/mosquitto.pid |
|
user @l_rusr@ |
|
|
|
# logging |
|
log_dest file @l_prefix@/var/mosquitto/log/mosquitto.log |
|
log_type error |
|
log_type warning |
|
log_type notice |
|
log_type information |
|
log_type websockets |
|
websockets_log_level 1 |
|
connection_messages true |
|
log_timestamp true |
|
|
|
# security |
|
allow_anonymous true |
|
password_file @l_prefix@/etc/mosquitto/mosquitto-pwd.txt |
|
acl_file @l_prefix@/etc/mosquitto/mosquitto-acl.txt |
|
|
|
# persistence |
|
autosave_interval 1800 |
|
autosave_on_changes false |
|
persistence true |
|
persistence_file mosquitto.db |
|
persistence_location @l_prefix@/var/mosquitto/db |
|
|
|
# regular listener (mqtt: MQTT over TCP) |
|
listener 1883 127.0.0.1 |
|
max_connections -1 |
|
protocol mqtt |
|
|
|
# additional listener (mqtts: MQTT over TCP+SSL/TLS) |
|
listener 8883 127.0.0.1 |
|
max_connections -1 |
|
protocol mqtt |
|
cafile @l_prefix@/etc/x509/example-ca.crt.pem |
|
certfile @l_prefix@/etc/x509/example-server.crt.pem |
|
keyfile @l_prefix@/etc/x509/example-server.key.pem |
|
require_certificate false |
|
|
|
# additional listener (ws: MQTT over WebSockets) |
|
listener 8888 127.0.0.1 |
|
max_connections -1 |
|
protocol websockets |
|
|
|
# additional listener (wss: MQTT over WebSockets+SSL/TLS) |
|
listener 8889 127.0.0.1 |
|
max_connections -1 |
|
protocol websockets |
|
cafile @l_prefix@/etc/x509/example-ca.crt.pem |
|
certfile @l_prefix@/etc/x509/example-server.crt.pem |
|
keyfile @l_prefix@/etc/x509/example-server.key.pem |
|
require_certificate false |
|
|
|
# allow plugins to extend this configuration |
|
include_dir @l_prefix@/etc/mosquitto/mosquitto.d |
|
|
|
|