Created
February 15, 2021 18:43
-
-
Save wallyqs/90e5d0c11eb50ed8eb9ed16586031390 to your computer and use it in GitHub Desktop.
NATS Clusters + Leafnodes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
system_account: sys | |
accounts { | |
sys { users = [{user: sys, pass: sys}] } | |
} | |
leaf { | |
port = 7422 | |
authorization { | |
users = [ | |
{ user: bsys, pass: bsys, account: sys } | |
] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
system_account: sys | |
accounts { | |
sys { users = [{user: sys, pass: sys}] } | |
} | |
leaf { | |
port = 7423 | |
authorization { | |
users = [ | |
{ user: csys, pass: csys, account: sys } | |
] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
system_account: sys | |
accounts { | |
sys { users = [{ user: sys, pass: sys}] } | |
} | |
leaf { | |
remotes = [ | |
{ | |
url = "nats://bsys:[email protected]:7422" | |
account = sys | |
}, | |
{ | |
url = "nats://csys:[email protected]:7423" | |
account = sys | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment