EMQX listener with password

Moki Lv6

Users cannot be added by env.

1
2
3
4
5
6
7
8
9
FROM emqx:5.1.6

ENV EMQX_LISTENERS__TCP__LISTENER_PASSWORD__BIND=0.0.0.0:1883
ENV EMQX_LISTENERS__TCP__LISTENER_PASSWORD__AUTHENTICATION__1__BACKEND=built_in_database
ENV EMQX_LISTENERS__TCP__LISTENER_PASSWORD__AUTHENTICATION__1__MECHANISM=password_based

ENV EMQX_AUTHENTICATION__1__BACKEND=built_in_database
ENV EMQX_AUTHENTICATION__1__MECHANISM=password_based
ENV EMQX_AUTHENTICATION__1__PASSWORD_HASH_ALGORITHM__NAME=plain # or sha512
On this page
EMQX listener with password