emqx5 acl文件授权 配置以用户名结尾的主题只能用户自己订阅,比如 主题comment/用户名,只能该用户订阅其他用户不能订阅,应该怎么配置?
我这么配置哪里有问题?配了无效
{allow, {username, “username”}, subscribe, [“comment/username”]}.
{deny, all, subscribe, [“comment/#”]}.
要用占位符的,自己再按文档配一下
emqx5 acl文件授权 配置以用户名结尾的主题只能用户自己订阅,比如 主题comment/用户名,只能该用户订阅其他用户不能订阅,应该怎么配置?
我这么配置哪里有问题?配了无效
{allow, {username, “username”}, subscribe, [“comment/username”]}.
{deny, all, subscribe, [“comment/#”]}.
要用占位符的,自己再按文档配一下