Reference

remotes

List of entries specifiying servers where the leaf node client connection can be made.

  • Default value: n/a
  • Hot reloadable: No

Values

TypeDescriptionChoices
[ object ]An object with a set of explicit properties that can be set.-

Properties

NameDescriptionTypeDefault
urlURL or list of URLs of a remote server accepting leaf node connections. If username/password or token authentication is required on the remote, this should be encoded in the URL itself, e.g. nats-leaf://username:password@localhost:7422. Note, the URL scheme should be nats-leaf or ws.(multiple)-
no_randomizeIf true and more than one URL is specified, the first one in the list will be used. If the client disconnects from the server, then the next URL will be used in order.boolean-
accountAccount name or public NKey identifying the local account to bind to this remote server. Any traffic locally on this account will be forwarded to the remote server.string-
credentialsPath to a credentials file. This is application when decentralized auth is used on the remote.string-
tlsTLS configuration for connecting/authenticating with the remote if mutual TLS is required.object-
hubboolean-
deny_imports(multiple)-
deny_exports(multiple)-
ws_compressionIf true, and connecting with the WebSocket protocol, the connection will indicate to the remote that it wishes compression to be used.booleanfalse
ws_no_maskingIf true and connecting with the WebSocket protocol, the connection will indicate to the remote that it wishes not to mask outbound WebSocket frames.booleanfalse
jetstream_cluster_migratebooleantrue
Previous
min_version