1st commit

This commit is contained in:
2026-09-22 06:16:30 +07:00
commit 2a8da27767
3 changed files with 121 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
port: 4222
websocket {
port: 9222
no_tls: true
}
# --- JETSTREAM CONFIGURATION ---
jetstream {
store_dir: "/data/nats-jetstream"
}
# --- CLUSTERING CONFIGURATION ---
cluster {
# Add this line to give the cluster an explicit identity
name: "my_nats_cluster"
port: 6222
routes = [
"nats-route://192.168.88.21:6222" # PC1 IP
# "nats-route://nats-server2:6222" # replace nats-server2 with PC2 IP
# "nats-route://nats-server3:6222" # replace nats-server2 with PC3 IP
]
}
debug: true
trace: false