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

     1  # Cluster Server A
     2  
     3  listen: 127.0.0.1:7222
     4  
     5  authorization {
     6    user: user
     7    password: foo
     8    timeout: 2
     9  }
    10  
    11  cluster {
    12    listen: 127.0.0.1:7244
    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  }