mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Added cluster names as required for prep work for clustered JetStream. System can dynamically pick a cluster name and settle on one even in large clusters. Signed-off-by: Derek Collison <derek@nats.io>
34 lines
590 B
Plaintext
34 lines
590 B
Plaintext
# Cluster Server A with Permissions
|
|
|
|
listen: 127.0.0.1:5222
|
|
http: 127.0.0.1:5223
|
|
|
|
cluster {
|
|
listen: 127.0.0.1:5244
|
|
name: xyz
|
|
|
|
authorization {
|
|
user: ruser
|
|
password: top_secret
|
|
timeout: 0.5
|
|
}
|
|
|
|
permissions {
|
|
import: "foo"
|
|
export: {
|
|
allow: "*"
|
|
deny: ["foo", "nats"]
|
|
}
|
|
}
|
|
|
|
# Routes are actively solicited and connected to from this server.
|
|
# Other servers can connect to us if they supply the correct credentials
|
|
# in their routes definitions from above.
|
|
|
|
routes = [
|
|
nats-route://ruser:top_secret@127.0.0.1:5246
|
|
]
|
|
}
|
|
|
|
no_sys_acc: true
|