updates to nats cluster configuration and scripts
Some checks failed
offline / test (push) Has been cancelled

This commit is contained in:
George Lambert 2026-09-19 23:52:39 -04:00
commit 123e040253
2 changed files with 147 additions and 1 deletions

View file

@ -17,3 +17,9 @@ cluster {
{{ROUTES}}
]
}
# Leaf hub for the public edge on NS1. Private vmbr1 only — not vmbr0.
leafnodes {
host: {{IP}}
port: 7422
}

View file

@ -0,0 +1,24 @@
# Public client edge on NS1. Binds the public IPv4 only (not 0.0.0.0).
# Forwards to the private 3-node cluster via leafnodes. No JetStream here.
# Cluster routes :6222 and hub leaf :7422 stay on vmbr1.
server_name: nats-public-edge
listen: {{PUBLIC_IP}}:4222
http: 127.0.0.1:8229
authorization {
token: "{{TOKEN}}"
}
websocket {
listen: 127.0.0.1:14422
no_tls: true
compression: true
}
leafnodes {
remotes: [
{ url: "nats://10.10.10.21:7422" }
{ url: "nats://10.10.10.22:7422" }
{ url: "nats://10.10.10.23:7422" }
]
}