##
# defaults
protocol mqtt
user root

##
# logging
log_dest stdout

##
# datastore
persistence true
persistence_location /data/

##
# User settings
auth_plugin /usr/share/mosquitto/auth-plug.so
auth_opt_backends http
auth_opt_http_ip 127.0.0.1
auth_opt_http_port 8080
auth_opt_http_getuser_uri /login
auth_opt_http_superuser_uri /superuser
auth_opt_http_aclcheck_uri /acl
auth_opt_log_quiet %%AUTH_QUIET_LOGS%%
auth_opt_auth_cacheseconds 300

allow_anonymous %%ANONYMOUS%%

#include_dir /share/mosquitto

listener 1883
protocol mqtt

listener 1884
protocol websockets

# Follow SSL listener if a certificate exists
