EMQX listener with JWT

Moki Lv6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM emqx:5.1.6

ENV SECRET_CLIENTS_JWT=secret-9876

ENV EMQX_LISTENERS__TCP__CLIENTS_JWT__BIND=0.0.0.0:1883
ENV EMQX_LISTENERS__TCP__CLIENTS_JWT__AUTHENTICATION__1__MECHANISM=jwt
ENV EMQX_LISTENERS__TCP__CLIENTS_JWT__AUTHENTICATION__1__USE_JWKS=false
ENV EMQX_LISTENERS__TCP__CLIENTS_JWT__AUTHENTICATION__1__ALGORITHM=hmac-based
ENV EMQX_LISTENERS__TCP__CLIENTS_JWT__AUTHENTICATION__1__SECRET=$SECRET_CLIENTS_JWT

ENV EMQX_LISTENERS__SSL__CLIENTS_JWT__BIND=0.0.0.0:8883
ENV EMQX_LISTENERS__SSL__CLIENTS_JWT__AUTHENTICATION__1__MECHANISM=jwt
ENV EMQX_LISTENERS__SSL__CLIENTS_JWT__AUTHENTICATION__1__USE_JWKS=false
ENV EMQX_LISTENERS__SSL__CLIENTS_JWT__AUTHENTICATION__1__ALGORITHM=hmac-based
ENV EMQX_LISTENERS__SSL__CLIENTS_JWT__AUTHENTICATION__1__SECRET=$SECRET_CLIENTS_JWT
On this page
EMQX listener with JWT