This commit is contained in:
zeaslity
2024-10-30 16:30:51 +08:00
commit 437acbeb63
3363 changed files with 653948 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
{allow, {user, "admin"}, pubsub, ["admin/#"]}.
{allow, {user, "dashboard"}, subscribe, ["$SYS/#"]}.
{allow, {ipaddr, "127.0.0.1"}, pubsub, ["$SYS/#", "#"]}.
{deny, all, subscribe, ["$SYS/#", {eq, "#"}]}.
{allow, all}.

View File

@@ -0,0 +1 @@
docker run -d -p 1883:1883 -p 8083:8083 -p 18083:18083 --restart always --env EMQX_ALLOW_ANONYMOUS="false" --env EMQX_ACL_NOMATCH="deny" -v /home/nazsj/emqx/emqx_auth_username.conf:/opt/emqx/etc/plugins/emqx_auth_mnesia.conf -v /home/nazsj/emqx/acl.conf:/opt/emqx/etc/acl.conf -v /home/nazsj/emqx/emqx-load-plugins.conf:/opt/emqx/data/loaded_plugins -v /home/nazsj/emqx/data-new:/opt/emqx/data/mnesia --name emqx docker.107421.xyz/emqx/emqx:4.4.9

View File

@@ -0,0 +1,9 @@
{emqx_auth_username,true}.
{mqx_auth_mnesia,true}.
{emqx_management, true}.
{emqx_recon, true}.
{emqx_retainer, false}.
{emqx_dashboard, true}.
{emqx_telemetry, true}.
{emqx_rule_engine, true}.
{emqx_bridge_mqtt, false}.

View File

@@ -0,0 +1,11 @@
auth.mnesia.password_hash = sha256
# clientid 认证数据
# auth.client.1.clientid = admin
# auth.client.1.password = 4YPk*DS%+5
## username 认证数据
auth.user.1.username = admin
auth.user.1.password = 4YPk*DS%+5
auth.user.2.username = cmlc
auth.user.2.password = 4YPk*DS%+5