get.pme.sh/pnats@v0.0.0-20240304004023-26bb5a137ed0/server/configs/cluster.conf (about)

     1  # Cluster config file
     2  
     3  port: 4242
     4  net: 127.0.0.1
     5  
     6  authorization {
     7    user:     derek
     8    password: porkchop
     9    timeout:  1
    10  }
    11  
    12  pid_file: '/tmp/nats-server/nats_cluster_test.pid'
    13  
    14  cluster {
    15    host: 127.0.0.1
    16    port: 4244
    17    name: "abc"
    18  
    19    authorization {
    20      user: route_user
    21      password: top_secret
    22      timeout: 1
    23    }
    24  
    25    # Routes are actively solicited and connected to from this server.
    26    # Other servers can connect to us if they supply the correct credentials
    27    # in their routes definitions from above.
    28  
    29    routes = [
    30      nats-route://foo:bar@127.0.0.1:4245
    31      nats-route://foo:bar@127.0.0.1:4246
    32    ]
    33  
    34    no_advertise: true
    35    connect_retries: 2
    36  }