File: cluster.conf

package info (click to toggle)
golang-github-nats-io-gnatsd 1.3.0%2Bgit20181112.3c52dc8-1.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,612 kB
  • sloc: sh: 33; makefile: 10
file content (35 lines) | stat: -rw-r--r-- 619 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Cluster config file

port: 4242
net: 127.0.0.1

authorization {
  user:     derek
  password: porkchop
  timeout:  1
}

pid_file: '/tmp/nats_cluster_test.pid'

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@127.0.0.1:4245
    nats-route://foo:bar@127.0.0.1:4246
  ]

  no_advertise: true
  connect_retries: 2
}