CUB-231: Mosquitto MQTT broker setup on Pi Zero 2 W hub

- Install script for Mosquitto MQTT broker on Pi Zero 2 W (10.60.1.101)
- Persistence enabled with data stored in /var/lib/mosquitto/data/
- Topic ACL configuration for hub, sensor, mobile, and admin users
- systemd service with security hardening (NoNewPrivileges, ProtectSystem)
- Configuration files: mosquitto.conf, acl.conf
- Validation script to verify setup before deployment
This commit is contained in:
Pip
2026-05-23 13:31:58 +00:00
commit a2639c002f
8 changed files with 466 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
# Main Mosquitto Configuration
# Target: Pi Zero 2 W Hub (10.60.1.101)
# Persistence
persistence true
persistence_location /var/lib/mosquitto/data/
persistence_file mosquitto.db
# Listener
listener 1883
# Authentication
allow_anonymous false
# ACL
acl_file /etc/mosquitto/acl/acl.conf
# Logging
log_dest file /var/log/mosquitto/mosquitto.log
log_type all
# Max connections
max_connections 100
# Keep alive
persistent_client_expiration 4w