# OCETS edge MQTT broker — plant solar-example.
# Local Telegraf publishes here; the central collector subscribes over
# private network. The broker buffers QoS1 messages for the central subscriber
# while it is offline (persistent session required on the subscriber).

listener 1883 0.0.0.0
allow_anonymous false
password_file /etc/mosquitto/ocets_passwd

# Persistence so queued messages survive broker restarts
persistence true
autosave_interval 60

# Queue depth for the offline central subscriber (QoS1, clean_session=false)
max_queued_messages 100000

# TODO before production exposure beyond private network: per-listener TLS
# (certfile/keyfile) and an ACL file restricting each user to telemetry/#
