Skip to content

Instantly share code, notes, and snippets.

@TiMladenov
Created October 11, 2019 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TiMladenov/5700a23d618b6110ce35a943243cfb04 to your computer and use it in GitHub Desktop.
Save TiMladenov/5700a23d618b6110ce35a943243cfb04 to your computer and use it in GitHub Desktop.
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
listener 8883 0.0.0.0
protocol mqtt
#Update this to fit your own file location
cafile /etc/mosquitto/certs/ca-cert.pem
keyfile /etc/mosquitto/certs/server-key.pem
certfile /etc/mosquitto/certs/server-cert.pem
require_certificate true
use_identity_as_username true
allow_anonymous false
listener 1883 localhost
protocol mqtt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment