From d1fb4bbfbba6d6f9fd9b3636f5e29ed8c80da2d5 Mon Sep 17 00:00:00 2001 From: Xavier MARCELET Date: Tue, 7 Mar 2023 15:41:33 +0100 Subject: [PATCH] bugfix: use CF_EXPORTER_WEB_TLS_CERTFILE envvar for web.tls.cert_file flag --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e85eb8dd..e67962b2 100644 --- a/main.go +++ b/main.go @@ -74,7 +74,7 @@ var ( tlsCertFile = kingpin.Flag( "web.tls.cert_file", "Path to a file that contains the TLS certificate (PEM format). If the certificate is signed by a certificate authority, the file should be the concatenation of the server's certificate, any intermediates, and the CA's certificate ($CF_EXPORTER_WEB_TLS_CERTFILE)", - ).Envar("CF_EXPORTER_WEB_TLS_KEYFILE").ExistingFile() + ).Envar("CF_EXPORTER_WEB_TLS_CERTFILE").ExistingFile() tlsKeyFile = kingpin.Flag( "web.tls.key_file", "Path to a file that contains the TLS private key (PEM format) ($CF_EXPORTER_WEB_TLS_KEYFILE)",