mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-12-06 03:14:09 +00:00
33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
# Local-only Mosquitto configuration for sample replay.
|
|
#
|
|
# Bound to all interfaces *inside* its container; publish ports to the host
|
|
# loopback only. Anonymous access is intentional: this broker exists solely
|
|
# for local sample replay and must never be exposed beyond localhost.
|
|
# Bound replay bursts explicitly. Mosquitto's default 1,000-message subscriber
|
|
# queue otherwise drops part of a 2,000-message saturation fixture before the
|
|
# durable consumer can apply backpressure. Both limits are per client.
|
|
max_queued_messages 10000
|
|
max_queued_bytes 16777216
|
|
|
|
listener 1883
|
|
protocol mqtt
|
|
allow_anonymous true
|
|
|
|
listener 9001
|
|
protocol websockets
|
|
allow_anonymous true
|
|
|
|
# Persist retained data and durable subscriber queues across graceful restarts.
|
|
# Periodic saves bound the save interval; PUBACK alone is not a disk-fsync receipt.
|
|
persistence true
|
|
persistence_location /mosquitto/data/
|
|
autosave_interval 30
|
|
log_dest stdout
|
|
log_dest file /mosquitto/log/mosquitto.log
|
|
log_type warning
|
|
log_type error
|
|
log_type notice
|
|
# The authenticated reloader confirms SIGHUP from this broker's log marker.
|
|
log_type information
|
|
connection_messages true
|