meshtastic- Unnamed repository; edit this file 'description' to name the repository. |
git clone git://git.acid.vegas/-c.git |
Log | Files | Refs | Archive | README | LICENSE |
MQTT.md (892B)
1 ###### default.conf 2 ``` 3 # Insecure 4 listener 1883 5 6 # TLS/SSL 7 listener 8883 8 acl_file /etc/mosquitto/conf.d/aclfile 9 protocol mqtt 10 require_certificate false 11 certfile /etc/mosquitto/certs/cert.pem 12 cafile /etc/mosquitto/certs/fullchain.pem 13 keyfile /etc/mosquitto/certs/privkey.pem 14 15 listener 8083 16 protocol websockets 17 certfile /etc/mosquitto/certs/cert.pem 18 cafile /etc/mosquitto/certs/fullchain.pem 19 keyfile /etc/mosquitto/certs/privkey.pem 20 ``` 21 22 ###### /etc/mosquitto/conf.d/aclfile 23 ``` 24 user acidvegas 25 topic readwrite msh/# 26 27 user mate 28 topic readwrite msh/# 29 30 pattern write $SYS/broker/connection/%c/state 31 ``` 32 33 ###### mosquito.conf 34 ``` 35 pid_file /run/mosquitto/mosquitto.pid 36 37 per_listener_settings true 38 allow_anonymous false 39 persistence true 40 persistence_location /var/lib/mosquitto 41 password_file /etc/mosquitto/passwd 42 43 log_dest file /var/log/mosquitto/mosquitto.log 44 45 include_dir /etc/mosquitto/conf.d 46 ```