2017-05-22 10:32:13 +08:00
|
|
|
#
|
|
|
|
# Docs: https://mosquitto.org/man/mosquitto-conf-5.html
|
|
|
|
#
|
|
|
|
|
|
|
|
port 1883
|
2016-11-03 01:34:54 +08:00
|
|
|
log_dest stdout
|
2017-04-22 12:19:52 +08:00
|
|
|
allow_anonymous false
|
|
|
|
password_file /etc/mosquitto/pwfile
|
2016-11-03 01:34:54 +08:00
|
|
|
persistence true
|
2017-06-07 17:57:25 +08:00
|
|
|
persistence_location /var/lib/mosquitto/
|
2017-05-22 10:32:13 +08:00
|
|
|
|
|
|
|
###### ENABLE WS ######
|
|
|
|
#listener 8080
|
|
|
|
#protocol websockets
|
2017-05-22 14:48:55 +08:00
|
|
|
#capath /etc/ssl/certs
|
2017-05-22 10:32:13 +08:00
|
|
|
#certfile /var/lib/mosquitto/fullchain.pem
|
|
|
|
#keyfile /var/lib/mosquitto/privkey.pem
|
|
|
|
#require_certificate false
|
|
|
|
|
|
|
|
###### ENABLE TLS ######
|
|
|
|
#listener 8883
|
|
|
|
#protocol mqtt
|
2017-05-22 14:48:55 +08:00
|
|
|
#capath /etc/ssl/certs
|
2017-05-22 10:32:13 +08:00
|
|
|
#certfile /var/lib/mosquitto/fullchain.pem
|
|
|
|
#keyfile /var/lib/mosquitto/privkey.pem
|
|
|
|
#require_certificate false
|