# Mosquitto configuration for running the tests
# Run as: mosquitto -v -c mosquitto.conf

per_listener_settings true
pid_file mosquitto.pid
log_type none
max_inflight_messages 5
max_packet_size 100
max_keepalive 60

# Listening on default port, no username/password required
listener 1883
allow_anonymous true
max_topic_alias 25

# Listening on port 2883
listener 2883
password_file passwords
max_topic_alias 10

# Test enhanced authentication.
# This requires test plugins from the mosquitto project:
# https://github.com/eclipse/mosquitto/blob/master/test/broker/c/auth_plugin_extended_single.c
# https://github.com/eclipse/mosquitto/blob/master/test/broker/c/auth_plugin_extended_multiple.c
# The "multiple" plugin must be loaded before "single" because they both
# define an incompatible "mirror" authentication method.
auth_plugin ./auth_plugin_extended_multiple.so
auth_plugin ./auth_plugin_extended_single.so

# Listening on port 2880 for websocket connections
#listener 2880
#protocol websockets
#max_topic_alias 5
