From 9cb23ec04497af2f2c88cf7f5a9be7fba2100349 Mon Sep 17 00:00:00 2001 From: Waldemar Quevedo Date: Wed, 27 Jan 2021 07:33:23 -0800 Subject: [PATCH 1/2] Update leafnode examples --- nats-server/configuration/leafnodes/README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/nats-server/configuration/leafnodes/README.md b/nats-server/configuration/leafnodes/README.md index af63bdb..221f329 100644 --- a/nats-server/configuration/leafnodes/README.md +++ b/nats-server/configuration/leafnodes/README.md @@ -52,7 +52,20 @@ listen: "127.0.0.1:4111" leafnodes { remotes = [ { - url: "nats-leaf://s3cr3t@localhost" + url: "nats://s3cr3t@localhost" + }, + ] +} +``` + +In case the remote leaf connection is connecting with `tls`: + +```text +listen: "127.0.0.1:4111" +leafnodes { + remotes = [ + { + url: "tls://s3cr3t@localhost" }, ] } @@ -178,7 +191,7 @@ Let's craft a leaf node connection much like we did earlier: leafnodes { remotes = [ { - url: "nats-leaf://connect.ngs.global" + url: "tls://connect.ngs.global" credentials: "/Users/alberto/.nkeys/creds/synadia/leaftest/leaftestuser.creds" }, ] From b5e79b6eb00494be4038568cf826f566cd43b66c Mon Sep 17 00:00:00 2001 From: Ginger Collison Date: Wed, 27 Jan 2021 10:33:03 -0600 Subject: [PATCH 2/2] Update README.md --- nats-server/configuration/leafnodes/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nats-server/configuration/leafnodes/README.md b/nats-server/configuration/leafnodes/README.md index 221f329..3e1a5e6 100644 --- a/nats-server/configuration/leafnodes/README.md +++ b/nats-server/configuration/leafnodes/README.md @@ -58,7 +58,7 @@ leafnodes { } ``` -In case the remote leaf connection is connecting with `tls`: +In the case where the remote leaf connection is connecting with `tls`: ```text listen: "127.0.0.1:4111"