用户名/密码
Plain Text Passwords
You can authenticate one or more clients using username and passwords; this enables you to have greater control over the management and issuance of credential secrets.
Single User
You can also specify a single username/password by:
Multiple users
Bcrypted Passwords
Username/password also supports bcrypted passwords using the nats
tool. Simply replace the clear text password with the bcrypted entries:
And on the configuration file:
Reloading a Configuration
As you add/remove passwords from the server configuration file, you'll want your changes to take effect. To reload without restarting the server and disconnecting clients, do:
最后更新于