updates to nats cluster configuration and scripts
Some checks failed
offline / test (push) Has been cancelled
Some checks failed
offline / test (push) Has been cancelled
This commit is contained in:
parent
d0dceae4d0
commit
123e040253
2 changed files with 147 additions and 1 deletions
|
|
@ -17,3 +17,9 @@ cluster {
|
|||
{{ROUTES}}
|
||||
]
|
||||
}
|
||||
|
||||
# Leaf hub for the public edge on NS1. Private vmbr1 only — not vmbr0.
|
||||
leafnodes {
|
||||
host: {{IP}}
|
||||
port: 7422
|
||||
}
|
||||
|
|
|
|||
24
packages/verae-nats-cluster/conf/public-edge.conf.tmpl
Normal file
24
packages/verae-nats-cluster/conf/public-edge.conf.tmpl
Normal 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" }
|
||||
]
|
||||
}
|
||||
Loading…
Reference in a new issue