app/vmstorage: add support for mTLS cipher suites via -cluster.tlsCipherSuites command-line flag

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2404
This commit is contained in:
Aliaksandr Valialkin
2022-04-16 16:32:17 +03:00
parent 54bb8c2bc6
commit cad488fe7e
4 changed files with 22 additions and 28 deletions

View File

@@ -93,7 +93,7 @@ func Serve(addr string, rh RequestHandler) {
logger.Infof("pprof handlers are exposed at %s://%s/debug/pprof/", scheme, hostAddr)
var tlsConfig *tls.Config
if *tlsEnable {
tc, err := netutil.GetServerTLSConfig("", *tlsCertFile, *tlsKeyFile, *tlsCipherSuites)
tc, err := netutil.GetServerTLSConfig(*tlsCertFile, *tlsKeyFile, *tlsCipherSuites)
if err != nil {
logger.Fatalf("cannot load TLS cert from -tlsCertFile=%q, -tlsKeyFile=%q: %s", *tlsCertFile, *tlsKeyFile, err)
}