Struct AggregationConfig

Nested Relationships

Nested Types

Struct Documentation

struct AggregationConfig

Configuration for peer aggregation.

Public Members

bool enabled = {false}
int timeout_ms = {2000}
bool announce = {false}
bool discover = {false}
std::string mdns_service = {"_medkit._tcp.local"}
bool forward_auth = {false}

Forward the client’s Authorization header to peer gateways. Default: false (safe default - prevents token leakage to untrusted peers).

bool require_tls = {false}

Require TLS (https://) for all peer URLs. When true, peers with http:// URLs are rejected (logged as ERROR and skipped). When false, http:// peers produce a WARN at startup about cleartext communication.

std::string peer_scheme = {"http"}

URL scheme for mDNS-discovered peer URLs (“http” or “https”). Default: “http”. Set to “https” when peers use TLS.

size_t max_discovered_peers = {50}

Maximum number of peers that can be added via mDNS discovery. Prevents unbounded growth of the peer list from rogue mDNS announcements. Static peers do not count against this limit. Default: 50.

std::vector<PeerConfig> peers
struct PeerConfig

Public Members

std::string url
std::string name