mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
36 lines
632 B
Plaintext
36 lines
632 B
Plaintext
|
|
# Cluster config file
|
|
|
|
port: 4242
|
|
net: apcera.me # net interface
|
|
|
|
authorization {
|
|
user: derek
|
|
password: bella
|
|
timeout: 1
|
|
}
|
|
|
|
pid_file: '/tmp/nats_cluster_test.pid'
|
|
log_file: '/tmp/nats_cluster_test.log'
|
|
|
|
cluster {
|
|
host: '127.0.0.1'
|
|
port: 4244
|
|
|
|
authorization {
|
|
user: route_user
|
|
password: top_secret
|
|
timeout: 1
|
|
}
|
|
|
|
# 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://foo:bar@apcera.me:4245
|
|
nats-route://foo:bar@apcera.me:4246
|
|
]
|
|
}
|
|
|