🦟 HTTP Authentication ready to use for Mosquitto as Docker image.
MQTT and Websocket is ready to use 💪
By default:
auth_opt_http_ip
is equal to127.0.0.1
, you can change it withHTTP_IP
ENV variable.auth_opt_http_port
is equal to80
, you can change it withHTTP_PORT
.auth_opt_http_hostname
is equal tolocalhost
, you can change it withHTTP_HOSTNAME
.
Other parameters in Mosquitto configuration file:
auth_opt_http_getuser_uri /mqtt/auth
auth_opt_http_superuser_uri /mqtt/superuser
auth_opt_http_aclcheck_uri /mqtt/acl
$ docker pull ahmdrz/mosquitto:latest
$ docker run -p 9001:9001 -p 1883:1883 ahmdrz/mosquitto:latest
You can mount /var/lib/mosquitto/
to persist Mosquitto data.