emqx / emqx-docs

EMQX product documentation
https://docs.emqx.com/
156 stars 262 forks source link

通过配置文件配置 #2721

Open Newwbbie opened 3 weeks ago

Newwbbie commented 3 weeks ago

File: /zh_CN/access-control/authn/mnesia.md

请问这里的配置文件位置在哪?

Newwbbie commented 3 weeks ago

解决了:

修改/etc/emqx.conf,最后一行添加如下

authentication = [
    {
        backend = "built_in_database"
        mechanism = "password_based"
        password_hash_algorithm {
            name = "sha256",
            salt_position = "suffix"
        }
        user_id_type = "username"
    }
]

随后重启服务