refine regex

This commit is contained in:
Joseph Hanson 2024-09-23 02:53:18 -05:00
parent 60d80ffa79
commit 88ed3f7e7b
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -3,6 +3,6 @@
%% https://docs.emqx.com/en/emqx/latest/access-control/authz/file.html %% %% https://docs.emqx.com/en/emqx/latest/access-control/authz/file.html %%
{allow, {user, "jahanson"}, all, ["#"]}. {allow, {user, "jahanson"}, all, ["#"]}.
{allow, {user, "tasmota"}, all, ["tasmota/discovery/#", "tele/tasmota_[A-Za-z0-9]+/#", "cmnd/tasmota_[A-Za-z0-9]+/#"]}. {allow, {user, "tasmota"}, all, ["tasmota/discovery/#", "tele/tasmota_[A-F0-9]+/#", "cmnd/tasmota_[A-F0-9]+/#"]}.
{allow, {user, "homeassistant"}, subscribe, ["stat/tasmota_[A-Za-z0-9]+/#", "tele/tasmota_[A-Za-z0-9]+/#"]}. {allow, {user, "homeassistant"}, subscribe, ["stat/tasmota_[A-F0-9]+/#", "tele/tasmota_[A-F0-9]+/#"]}.
{deny, all}. {deny, all}.