相比于默认配置:
- 启用了 auth http plugin, 具体实现可参考 authServer, authServer 部署参考项目 README.md
- 禁用匿名链接: listener.tcp.external.allow_anonymous = false
- 启用reuseport: listener.tcp.external.reuseport = true
- connect 和 pubsub 要单独配置,例如
rules = [
["allow", { user = "nodes", password ="password" }, "connect"],
["allow", { user = "nodes" }, "pubsub", ["cmd/%c", "cmd/%c/resp"]]
]
- clientId 会和 user 一一对应,不要随意更改。