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

Update leafnode examples

This commit is contained in:
Waldemar Quevedo
2021-01-27 07:33:23 -08:00
committed by GitHub
parent 3c4ea4dd1a
commit 9cb23ec044

View File

@@ -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"
},
]