---
title: Charmhub | Deploy NATS using Charmhub - The Open Operator Collection
description: Deploy the latest version of NATS on any cloud.
url: https://charmhub.io/nats/configurations
---

# NATS

[NATs charmers](https://charmhub.io/publisher/nats-charmers "View all packages from NATs charmers")

* [NATs charmers](https://charmhub.io/publisher/nats-charmers "View all packages from NATs charmers")

Platform:

24.04

22.04

20.04

2/stable 321

```
juju deploy nats --channel 2/stable
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

* [client-port](https://charmhub.io/nats/configurations#client-port)
* [cluster-port](https://charmhub.io/nats/configurations#cluster-port)
* [debug](https://charmhub.io/nats/configurations#debug)
* [listen-on-all-addresses](https://charmhub.io/nats/configurations#listen-on-all-addresses)
* [map-tls-clients](https://charmhub.io/nats/configurations#map-tls-clients)
* [nagios\_context](https://charmhub.io/nats/configurations#nagios_context)
* [nagios\_servicegroups](https://charmhub.io/nats/configurations#nagios_servicegroups)
* [snap-channel](https://charmhub.io/nats/configurations#snap-channel)
* [tls-ca-cert](https://charmhub.io/nats/configurations#tls-ca-cert)
* [tls-cert](https://charmhub.io/nats/configurations#tls-cert)
* [tls-key](https://charmhub.io/nats/configurations#tls-key)
* [trace](https://charmhub.io/nats/configurations#trace)
* [verify-tls-clients](https://charmhub.io/nats/configurations#verify-tls-clients)

[Learn about configurations >](https://juju.is/docs/juju/configuration#heading--application-configuration)

* client-port | int

  Default: 4222

  A port NATS listens on for incoming client connections.
* cluster-port | int

  Default: 4248

  A port NATS listens on for incoming cluster connections.
* debug | boolean

  Enable nats-server debug logging.
* listen-on-all-addresses | boolean

  Whether to use 0.0.0.0 for the client listening socket or not (all IPv4 and IPv6 addresses).
  NATS does not support multiple "listen" directives and the charm will error out if there are
  cross-model relations that result in multiple *different* bind-addresses available for relations of the
  client relation endpoint.
* map-tls-clients | boolean

  Enable or disable usage of values in client certificates for authentication purposes (used in
  conjunction with verify-tls-clients only.
* nagios\_context | string

  Default: juju

  Used by the nrpe subordinate charms.
  A string that will be prepended to instance name to set the host name
  in nagios. So for instance the hostname would be something like:
  juju-myservice-0
  If you're running multiple environments with the same services in them
  this allows you to differentiate between them.
* nagios\_servicegroups | string

  A comma-separated list of nagios servicegroups.
  If left empty, the nagios\_context will be used as the servicegroup
* snap-channel | string

  Default: stable

  Snap Store channel to install the NATs snap from
* tls-ca-cert | string

  A CA certificate to be used for verification of TLS certificates of NATS cluster peers.
  Optional if TLS certificates are signed by a certificate authority that the core snap trusts.
* tls-cert | string

  A TLS server certificate to be used by NATS.
* tls-key | string

  A TLS server key to be used by NATS.
* trace | boolean

  Enable tracing of raw protocol messages for nats-server.
* verify-tls-clients | boolean

  Enable or disable mandatory client TLS certificate verification.
