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.
This commit is contained in:
Joseph Doherty
2026-02-22 23:08:04 -05:00
parent 543b185f7e
commit a6e9bd1467

View File

@@ -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;
}
}