- nats-server.conf: added leafnodes.remotes to nats://144.76.224.179:7422 - NODA2 now a spoke leaf node; NODA1 is hub - Cross-node pub/sub verified: NODA1 pub → NODA2 sub (node.test.>) - Leafnode connection confirmed: 144.76.224.179:7422 lid:5 Made-with: Cursor
26 lines
354 B
Plaintext
26 lines
354 B
Plaintext
# NATS Server Configuration with JetStream
|
|
|
|
port: 4222
|
|
http_port: 8222
|
|
|
|
# JetStream configuration
|
|
jetstream {
|
|
store_dir: /data/jetstream
|
|
max_mem: 1G
|
|
max_file: 10G
|
|
}
|
|
|
|
# Leafnode remote: connect to NODA1 hub
|
|
leafnodes {
|
|
remotes [
|
|
{
|
|
urls: ["nats://144.76.224.179:7422"]
|
|
}
|
|
]
|
|
}
|
|
|
|
# Logging
|
|
debug: false
|
|
trace: false
|
|
logtime: true
|