From e62dc25b7b6c2190f50d7530a885b3b0c984ff6c Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Sun, 16 Aug 2020 08:58:37 -0500 Subject: [PATCH] updated documentation to mem-resolver generation --- .../configuration/securing_nats/jwt/mem_resolver.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/nats-server/configuration/securing_nats/jwt/mem_resolver.md b/nats-server/configuration/securing_nats/jwt/mem_resolver.md index 9ccef36..cd0aba9 100644 --- a/nats-server/configuration/securing_nats/jwt/mem_resolver.md +++ b/nats-server/configuration/securing_nats/jwt/mem_resolver.md @@ -52,12 +52,11 @@ Success! - added user "TA" to "A" ## Create the Server Config -The `nsc` tool can generate a configuration file automatically. You provide a path to the server configuration and operator jwt. The `nsc` tool will copy the operator JWT to the file specified, and generate the server config for you: +The `nsc` tool can generate a configuration file automatically. You provide a path to the server configuration. The `nsc` tool will generate the server config for you: ```text -> nsc generate config --mem-resolver --config-file /tmp/server.conf --operator-jwt /tmp/memory.jwt +> nsc generate config --mem-resolver --config-file /tmp/server.conf Success!! - generated "/tmp/server.conf" - generated "/tmp/memory.jwt" ``` If you require additional settings, you may want to consider using [`include`](../../#include-directive) in your main configuration, to reference the generated files. Otherwise, you can start a server and reference the generated configuration: @@ -70,7 +69,7 @@ You can then [test it](mem_resolver.md#testing-the-configuration). ## Manual Server Config -While generating a configuration file is easy, you may want to craft one by hand to know the details. With the entities created, and a standard location for the `.nsc` directory. You can reference the operator JWT and the account JWT in a server configuration. Remember that your configuration will be in `$NSC_HOME/nats//.jwt` for the operator. The account JWT will be in `$NSC_HOME/nats//accounts//.jwt` +While generating a configuration file is easy, you may want to craft one by hand to know the details. With the entities created, and a standard location for the `.nsc` directory. You can reference the operator JWT and the account JWT in a server configuration or the JWT string directly. Remember that your configuration will be in `$NSC_HOME/nats//.jwt` for the operator. The account JWT will be in `$NSC_HOME/nats//accounts//.jwt` For the configuration you'll need: @@ -80,7 +79,7 @@ For the configuration you'll need: The format of the file is: ```text -operator: +operator: resolver: MEMORY resolver_preload: { :