diff --git a/gnatsd.go b/gnatsd.go index b9c6ff80..6635e9bd 100644 --- a/gnatsd.go +++ b/gnatsd.go @@ -42,6 +42,8 @@ func main() { flag.StringVar(&opts.Authorization, "auth", "", "Authorization token required for connection.") flag.IntVar(&opts.HTTPPort, "m", 0, "HTTP Port for /varz, /connz endpoints.") flag.IntVar(&opts.HTTPPort, "http_port", 0, "HTTP Port for /varz, /connz endpoints.") + flag.IntVar(&opts.HTTPSPort, "ms", 0, "HTTPS Port for /varz, /connz endpoints.") + flag.IntVar(&opts.HTTPSPort, "https_port", 0, "HTTPS Port for /varz, /connz endpoints.") flag.StringVar(&configFile, "c", "", "Configuration file.") flag.StringVar(&configFile, "config", "", "Configuration file.") flag.StringVar(&opts.PidFile, "P", "", "File to store process pid.") @@ -58,7 +60,6 @@ func main() { flag.StringVar(&opts.RoutesStr, "routes", "", "Routes to actively solicit a connection.") flag.StringVar(&opts.ClusterListenStr, "cluster_listen", "", "Cluster url from which members can solicit routes.") flag.BoolVar(&showTlsHelp, "help_tls", false, "TLS help.") - flag.BoolVar(&opts.TLS, "tls", false, "Enable TLS.") flag.BoolVar(&opts.TLSVerify, "tlsverify", false, "Enable TLS with client verification.") flag.StringVar(&opts.TLSCert, "tlscert", "", "Server certificate file.") diff --git a/server/configs/test.conf b/server/configs/test.conf index b27215a2..baf54187 100644 --- a/server/configs/test.conf +++ b/server/configs/test.conf @@ -37,4 +37,3 @@ max_payload: 65536 # slow consumer threshold max_pending_size: 10000000 - diff --git a/server/monitor.go b/server/monitor.go index cac044de..69f7a2eb 100644 --- a/server/monitor.go +++ b/server/monitor.go @@ -299,19 +299,20 @@ func (s *Server) HandleRoot(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, `