maxpert / marmot

A distributed SQLite replicator built on top of NATS
https://maxpert.github.io/marmot/
MIT License
1.7k stars 42 forks source link

Added nkey authentication support #45

Closed nclv closed 1 year ago

nclv commented 1 year ago
nk -gen user > user.seed
nk -inkey user.seed -pubout > user.pub

Then copy user.pub's content into nats-server.conf :

accounts: {
  client: {  # user/account name
    jetstream: enable
    users: [
       { nkey: UDPXDY67FKWMCXHDQ5HGYODLFTBWJIHHUDMIAJWPDICIS5UMMLM5KGDZ }
    ]
  }
}

The file user.seed is specified in config.toml under seed_file.