add
This commit is contained in:
5
27-深圳政数局/emqx-docker/acl.conf
Normal file
5
27-深圳政数局/emqx-docker/acl.conf
Normal 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}.
|
||||
1
27-深圳政数局/emqx-docker/emqx-docker.sh
Normal file
1
27-深圳政数局/emqx-docker/emqx-docker.sh
Normal 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
|
||||
9
27-深圳政数局/emqx-docker/emqx-load-plugins.conf
Normal file
9
27-深圳政数局/emqx-docker/emqx-load-plugins.conf
Normal 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}.
|
||||
11
27-深圳政数局/emqx-docker/emqx_auth_username.conf
Normal file
11
27-深圳政数局/emqx-docker/emqx_auth_username.conf
Normal 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
|
||||
Reference in New Issue
Block a user