NATS Connection Properties

nats_connections.properties is used to configure one or more NATS connections for TEDI to use.


Settings

SettingDescription
conn.namereferring name of the connection to be used to configure which connection to use in your integration
conn.server.urlscomma delimited list of host:port combos
conn.server.randomizerandomize the host:port combos on connect
conn.verboseenable or disable file logging
conn.dial.timeoutmax time to wait to connect
conn.flush.timeoutmax time to wait to flush message buffers
conn.jetstream.enabledenable or disable use of JetStream
conn.jetstream.prefixesarray of JetStream contexts to create for the given connection
conn.inbox.prefixinbox prefix override
conn.max.reconnectsmax times to auto reattempt a broken connection
conn.reconnect.waittime to wait between reconnect attempts
conn.ping.intervalhow frequently the client pings the server when the connection is idle
conn.max.pings.outstandingcontrols how many unanswered pings are acceptable before marking the connection unhealthy
conn.publish.timeoutmax time to wait for a publish to complete
conn.drain.timeout max time to wait for drain to complete
conn.no.echounused
conn.tls.enabledenable or disables TLS
conn.tls.versionthe minimum tls protocol for connections
conn.tls.cipher.suiteslist of preferred cipher suites; leave empty to use Golang defaults
conn.tls.curve.preferencestls curve preferences; leave empty to use Golang defaults
conn.tls.insecure.skip.verifyskip x509 hostname verification during tls-negotiations (do not enable in production environments)
conn.auth.jwt.user.encoded.nkeyencrypted and encoded user nkey credential
conn.auth.jwt.system.key.aliassystem key used to encrypt nkey
conn.auth.jwt.user.jwt.fileuser credential jwt (name of the file that includes the jwt)

Configuration

To configure the connections, use the following syntax: {integer}.{setting}

0.conn.name                        = conn-1
0.conn.server.urls                 = "localhost:4222,localhost:4223,localhost:4224"
...
...

1.conn.name                        = conn-2
1.conn.server.urls                 = "localhost:4225,localhost:4226,localhost:4227"
...