first commit

This commit is contained in:
2025-11-03 22:44:47 +00:00
commit d4b7fa1c31
12 changed files with 1056 additions and 0 deletions

53
config/mosquitto.conf Normal file
View File

@@ -0,0 +1,53 @@
# Mosquitto MQTT Broker Konfiguration
# ===========================================
# Listener auf Port 1883 (Standard MQTT Port)
listener 1883
protocol mqtt
# WebSocket Support auf Port 9001 (für Browser-Clients und mqtt-panel)
listener 9001
protocol websockets
# Logging
log_dest stdout
log_dest file /mosquitto/log/mosquitto.log
log_type error
log_type warning
log_type notice
log_type information
log_timestamp true
log_timestamp_format %Y-%m-%dT%H:%M:%S
# Connection Logging
connection_messages true
# Persistenz aktivieren
persistence true
persistence_location /mosquitto/data/
persistence_file mosquitto.db
# Authentifizierung aktivieren
# allow_anonymous true ermöglicht anonyme Verbindungen, ACL regelt die Rechte
# Anonymous User haben nur Zugriff auf public/# und $SYS/# (siehe acl.conf)
allow_anonymous true
# Passwort-Datei
password_file /mosquitto/config/passwords.txt
# ACL (Access Control List) aktivieren
acl_file /mosquitto/config/acl.conf
# Maximale Verbindungen
max_connections -1
# Message Limits
message_size_limit 0
max_inflight_messages 20
max_queued_messages 1000
# Keepalive
max_keepalive 65535
# QoS Settings
upgrade_outgoing_qos false