fix: default ports 8470 (HTTP) / 4250 (NATS) to avoid clash with registry_api on 8420
This commit is contained in:
+2
-2
@@ -27,8 +27,8 @@ import (
|
||||
|
||||
func main() {
|
||||
var (
|
||||
natsURL = flag.String("nats-url", "nats://127.0.0.1:4222", "NATS url")
|
||||
ctrlURL = flag.String("ctrl-url", "http://127.0.0.1:8420", "membershipd control-plane url")
|
||||
natsURL = flag.String("nats-url", "nats://127.0.0.1:4250", "NATS url")
|
||||
ctrlURL = flag.String("ctrl-url", "http://127.0.0.1:8470", "membershipd control-plane url")
|
||||
roomSub = flag.String("room", "proc.test.ticks", "room subject to subscribe to")
|
||||
idFile = flag.String("id-file", "./local_files/chat.id", "identity file path")
|
||||
demoEnc = flag.Bool("demo-encrypted", false, "run the encrypted forward-secrecy demo")
|
||||
|
||||
@@ -24,10 +24,10 @@ import (
|
||||
func main() {
|
||||
var (
|
||||
natsURL = flag.String("nats-url", "", "external NATS url; empty starts an embedded server")
|
||||
httpPort = flag.String("http-port", "8420", "HTTP port for the control-plane API")
|
||||
httpPort = flag.String("http-port", "8470", "HTTP port for the control-plane API")
|
||||
dbPath = flag.String("db", "./local_files/unibus.db", "SQLite database path")
|
||||
storeDir = flag.String("store-dir", "./local_files/blobs", "blob store directory")
|
||||
natsPort = flag.Int("nats-port", 4222, "embedded NATS listen port (when --nats-url empty)")
|
||||
natsPort = flag.Int("nats-port", 4250, "embedded NATS listen port (when --nats-url empty)")
|
||||
natsStore = flag.String("nats-store", "./local_files/jetstream", "embedded JetStream store dir")
|
||||
)
|
||||
flag.Parse()
|
||||
|
||||
+2
-2
@@ -19,8 +19,8 @@ import (
|
||||
|
||||
func main() {
|
||||
var (
|
||||
natsURL = flag.String("nats-url", "nats://127.0.0.1:4222", "NATS url")
|
||||
ctrlURL = flag.String("ctrl-url", "http://127.0.0.1:8420", "membershipd control-plane url")
|
||||
natsURL = flag.String("nats-url", "nats://127.0.0.1:4250", "NATS url")
|
||||
ctrlURL = flag.String("ctrl-url", "http://127.0.0.1:8470", "membershipd control-plane url")
|
||||
roomSub = flag.String("room", "proc.test.ticks", "room subject to publish to")
|
||||
idFile = flag.String("id-file", "./local_files/worker.id", "identity file path")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user