mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
[ADDED] Support for token in configuration file
So far, it was only possible to use token from the command line. Resolves #464
This commit is contained in:
10
README.md
10
README.md
@@ -394,6 +394,16 @@ authorization {
|
||||
}
|
||||
```
|
||||
|
||||
Or, if you chose to use a token:
|
||||
|
||||
```
|
||||
authorization {
|
||||
# You can generate the token using /util/mkpassword.go
|
||||
token: $2a$11$pBwUBpza8vdJ7tWZcP5GRO13qRgh4dwNn8g67k5i/41yIKBp.sHke
|
||||
timeout: 1
|
||||
}
|
||||
```
|
||||
|
||||
**Multi-user authentication**
|
||||
|
||||
You can enable multi-user authentication using a NATS server configuration file that defines user credentials (`user` and `password`), and optionally `permissions`, for two or more users. Multi-user authentication leverages [variables](#variables).
|
||||
|
||||
Reference in New Issue
Block a user