#mosquitto conf file docs
https://mosquitto.org/man/mosquitto-conf-5.html

#conf file 
allow_anonymous false #must have user
connection_messages true #log client connect and disconnect
password_file /etc/mosquitto/passwd #speicyf path to password file
max_connections 5 #demo purpose
listener 8883 #port for tls
certfile /home/mpuser/letsencrypt-copy/live/mqtt.teeseng.uk-0001/cert.pem
cafile /home/mpuser/letsencrypt-copy/live/mqtt.teeseng.uk-0001/fullchain.pem
keyfile /home/mpuser/letsencrypt-copy/live/mqtt.teeseng.uk-0001/privkey.pem



#mosquitt.conf
pid_file /run/mosquitto/mosquitto.pid

persistence true
persistence_location /var/lib/mosquitto/

log_type all
log_facility 5
log_dest file /var/log/mosquitto/mosquitto.log

https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-ubuntu-18-04


