github.com/nats-io/nats-server/v2@v2.11.0-preview.2/server/configs/srv_b_bcrypt.conf (about)

     1  # Cluster Server B
     2  
     3  listen: 127.0.0.1:7224
     4  
     5  authorization {
     6    user: user
     7    password: foo
     8    timeout: 2
     9  }
    10  
    11  cluster {
    12    listen: 127.0.0.1:7246
    13    name: "abc"
    14  
    15    authorization {
    16      user: ruser
    17      # bcrypt version of 'bar'
    18      password: $2a$10$LoRPzN3GtF2pNX5QgCBBHeUr6/zVN./RVGOu5U8SpHyg2sfzvfXji
    19      timeout: 5
    20    }
    21  
    22    # Routes are actively solicited and connected to from this server.
    23    # Other servers can connect to us if they supply the correct credentials
    24    # in their routes definitions from above.
    25  
    26    routes = [
    27      nats-route://ruser:bar@127.0.0.1:7244
    28    ]
    29  }