28 lines
913 B
Plaintext
Executable File
28 lines
913 B
Plaintext
Executable File
# When run as root, drop privileges to this user and its primary
|
|
# group.
|
|
# Set to root to stay as root, but this is not recommended.
|
|
# If run as a non-root user, this setting has no effect.
|
|
# Note that on Windows this has no effect and so mosquitto should
|
|
# be started by the user you wish it to run as.
|
|
user mosquitto
|
|
allow_anonymous true
|
|
|
|
# Port to use for the default listener.
|
|
port 1883
|
|
listener 9001
|
|
protocol websockets
|
|
|
|
# Save persistent message data to disk (true/false).
|
|
# This saves information about all messages, including
|
|
# subscriptions, currently in-flight messages and retained
|
|
# messages.
|
|
# retained_persistence is a synonym for this option.
|
|
persistence true
|
|
|
|
# Location for persistent database. Must include trailing /
|
|
# Default is an empty string (current directory).
|
|
# Set to e.g. /var/lib/mosquitto/ if running as a proper service on Linux or
|
|
# similar.
|
|
persistence_location /mosquitto/data
|
|
|