19 lines
439 B
Text
19 lines
439 B
Text
%% ACLs for emqx %%
|
|
%% publish, subscribe, or all for both %%
|
|
%% https://docs.emqx.com/en/emqx/latest/access-control/authz/file.html %%
|
|
|
|
{allow, {user, "jahanson"}, all, ["#"]}.
|
|
|
|
{allow, {user, "tasmota"}, all, [
|
|
"tasmota/discovery/#"
|
|
% {re, "^tele/tasmota_+/+$"},
|
|
% {re, "^cmnd/tasmota_+/+$"}
|
|
]}.
|
|
|
|
{allow, {user, "homeassistant"}, subscribe, [
|
|
{re, "^stat/tasmota_+/+$"},
|
|
{re, "^tele/tasmota_+/+$"}
|
|
|
|
]}.
|
|
|
|
{deny, all}.
|