# Mosquitto MQTT broker (reusable fragment).
# include = ["include/mosquitto.toml"]
# Installs the mosquitto package (via the host's package manager) and drops in a
# conf.d snippet enabling an anonymous listener on port 1883. Unlike the other
# fragments this is a *host package*, not a container.
[[packages]]
name = "mosquitto"
[[files]]
# Standard mosquitto includes /etc/mosquitto/conf.d/*.conf from its main config.
path = "/etc/mosquitto/conf.d/devendra.conf"
mode = "0644"
content = """
listener 1883
allow_anonymous true
"""
[[services]]
name = "mosquitto.service"
enabled = true
# `restarted` so the broker reloads whenever this drop-in changes — otherwise an
# already-running mosquitto wouldn't pick up the new listener.
state = "restarted"
neiam
/devendra
public · Issues · Pulls · Labels · Forks · Compare · Actions failure · Badges · Packages
⭐
Log in to mark this repository.
760 B · text
History
e832e77