1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

GitBook: [master] 60 pages and 12 assets modified

This commit is contained in:
Ginger Collison
2021-03-15 14:08:37 +00:00
committed by gitbook-bot
parent 3429cc74ff
commit 0f1d9e01a8
59 changed files with 714 additions and 661 deletions

View File

@@ -60,7 +60,7 @@ Generated account key - private key stored "~/.nkeys/AAA/accounts/B/B.nk"
Success! - added account "B"
```
With the account and a couple of users in place, let's push all the accounts to the nats-account-server. If the account JWT server URL is not set on the operator, you may want to set it. Note that account servers typically require the path `/jwt/v1` in addition to the protocol and hostport (or you can specify the `--account-jwt-server-url` flag to nsc's `push` command).
With the account and a couple of users in place, let's push all the accounts to the nats-account-server. If the account JWT server URL is not set on the operator, you may want to set it. Note that account servers typically require the path `/jwt/v1` in addition to the protocol and hostport \(or you can specify the `--account-jwt-server-url` flag to nsc's `push` command\).
```text
nsc edit operator --account-jwt-server-url http://localhost:9090/jwt/v1

View File

@@ -1,4 +1,4 @@
# natscli
# nats
A command line utility to interact with and manage NATS.
@@ -10,20 +10,20 @@ Check out the repo for more details: [github.com/nats-io/natscli](https://github
For macOS:
```
```text
> brew tap nats-io/nats-tools
> brew install nats-io/nats-tools/nats
```
For Arch Linux:
```
```text
> yay natscli
```
For Docker:
```
```text
docker pull synadia/nats-box:latest
docker run -ti synadia/nats-box
@@ -39,7 +39,7 @@ The `nats` utility has a command for creating `bcrypt` hashes. This can be used
With `nats` installed:
```plain
```text
> nats server passwd
? Enter password [? for help] **********************
? Reenter password [? for help] **********************
@@ -49,7 +49,7 @@ $2a$11$3kIDaCxw.Glsl1.u5nKa6eUnNDLV5HV9tIuUp7EHhMt6Nm9myW1aS
To use the password on the server, add the hash into the server configuration file's authorization section.
```
```text
authorization {
user: derek
password: $2a$11$3kIDaCxw.Glsl1.u5nKa6eUnNDLV5HV9tIuUp7EHhMt6Nm9myW1aS
@@ -57,3 +57,4 @@ To use the password on the server, add the hash into the server configuration fi
```
Note the client will still have to provide the plain text version of the password, the server however will only store the hash to verify that the password is correct when supplied.