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

updates based on Ivan's re-write

This commit is contained in:
Ginger Collison 2019-07-16 16:42:18 -05:00 committed by GitHub
parent 83fe06f93e
commit 511c8f9157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,8 +79,8 @@ Create the leaf server configuration (leaf.conf) with the following contents:
port: 4111 port: 4111
leafnodes { leafnodes {
remotes = [ remotes = [
{ url: nats-leaf://localhost:4000, { url: [nats-leaf://localhost:4000]
credentials: /Users/synadia/.nkeys/O/accounts/A/users/leaf.creds credentials: "/Users/synadia/.nkeys/O/accounts/A/users/leaf.creds"
}, },
] ]
} }
@ -92,8 +92,8 @@ The leaf server configuration (leaf.conf) also supports multiple URLs with `urls
port: 4111 port: 4111
leafnodes { leafnodes {
remotes = [ remotes = [
{ urls: nats-leaf://host1:4000, nats-leaf://host2:4000, { urls: [nats-leaf://host1:4000, nats-leaf://host2:4000]
credentials: /Users/synadia/.nkeys/O/accounts/A/users/leaf.creds credentials: "/Users/synadia/.nkeys/O/accounts/A/users/leaf.creds"
}, },
] ]
} }