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

Merge pull request #202 from nats-io/leaf

Update leafnode examples
This commit is contained in:
Ginger Collison 2021-01-27 10:33:22 -06:00 committed by GitHub
commit 21588b40d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,20 @@ listen: "127.0.0.1:4111"
leafnodes {
remotes = [
{
url: "nats-leaf://s3cr3t@localhost"
url: "nats://s3cr3t@localhost"
},
]
}
```
In the case where 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"
},
]