|
ORE Studio 0.0.4
|
Configuration for a NATS connection. More...
#include <nats_options.hpp>

Public Attributes | |
| std::string | url = "nats://localhost:4222" |
| NATS server URL (e.g. "nats://localhost:4222" or "tls+tcp://localhost:4222" for TLS). | |
| std::string | subject_prefix |
| Subject prefix applied to every outbound subject. | |
| std::string | tls_ca_cert |
| Mutual TLS settings. | |
| std::string | tls_client_cert |
| std::string | tls_client_key |
Configuration for a NATS connection.
| std::string subject_prefix |
Subject prefix applied to every outbound subject.
Format: "ores.{tier}.{instance}", e.g. "ores.dev.local1". When set, all pub/sub/request subjects become "{subject_prefix}.{relative_subject}". Leave empty to use subjects as-is (e.g. in tests or scripts that manage prefixes externally).
| std::string tls_ca_cert |
Mutual TLS settings.
All three paths must be set together, or all left empty (plain TCP). When set, the NATS connection uses TLS and presents the client certificate to the broker for mutual authentication.
tls_ca_cert — path to the CA certificate (ca.crt) tls_client_cert — path to this service's certificate (<service>.crt) tls_client_key — path to this service's private key (<service>.key)