# # Docs: https://mosquitto.org/man/mosquitto-conf-5.html # listener 1883 log_dest stdout allow_anonymous false password_file /etc/mosquitto/pwfile persistence true persistence_location /var/lib/mosquitto persistence_file mosquitto.db #plugin /usr/lib/mosquitto_dynamic_security.so #plugin_opt_config_file /etc/mosquitto/dynamic-security.json ###### ENABLE WS ###### #listener 8080 #protocol websockets #capath /etc/ssl/certs #certfile /var/lib/mosquitto/fullchain.pem #keyfile /var/lib/mosquitto/privkey.pem #require_certificate false ###### ENABLE TLS ###### #listener 8883 #protocol mqtt #capath /etc/ssl/certs #certfile /var/lib/mosquitto/fullchain.pem #keyfile /var/lib/mosquitto/privkey.pem #require_certificate false