From a6e9bd1467a7d5e924805d78b2c52746e5921a37 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Sun, 22 Feb 2026 23:08:04 -0500 Subject: [PATCH] feat: add monitoring port CLI args to server host Support -m/--http_port, --http_base_path, and --https_port flags for configuring the monitoring HTTP endpoint from the command line. --- src/NATS.Server.Host/Program.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/NATS.Server.Host/Program.cs b/src/NATS.Server.Host/Program.cs index 4c30e50..90aadea 100644 --- a/src/NATS.Server.Host/Program.cs +++ b/src/NATS.Server.Host/Program.cs @@ -23,6 +23,15 @@ for (int i = 0; i < args.Length; i++) case "-n" or "--name" when i + 1 < args.Length: options.ServerName = args[++i]; break; + case "-m" or "--http_port" when i + 1 < args.Length: + options.MonitorPort = int.Parse(args[++i]); + break; + case "--http_base_path" when i + 1 < args.Length: + options.MonitorBasePath = args[++i]; + break; + case "--https_port" when i + 1 < args.Length: + options.MonitorHttpsPort = int.Parse(args[++i]); + break; } }