From 4ce2ecf885d74b793b373e9b683741521c08ee83 Mon Sep 17 00:00:00 2001 From: charles Date: Wed, 4 May 2022 11:05:26 +0200 Subject: [PATCH] Fix typo for tls_key_file (tls_cert_key) --- common/config/sites.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/config/sites.go b/common/config/sites.go index 2595d451ab..ffc5d7be82 100644 --- a/common/config/sites.go +++ b/common/config/sites.go @@ -128,7 +128,7 @@ func EnvOverrideDefaultBind() bool { } if noTls := viper.GetBool("no_tls"); noTls { DefaultBindingSite.TLSConfig = nil - } else if tlsCert, tlsKey := viper.GetString("tls_cert_file"), viper.GetString("tls_cert_key"); tlsCert != "" && tlsKey != "" { + } else if tlsCert, tlsKey := viper.GetString("tls_cert_file"), viper.GetString("tls_key_file"); tlsCert != "" && tlsKey != "" { DefaultBindingSite.TLSConfig = &install.ProxyConfig_Certificate{Certificate: &install.TLSCertificate{ CertFile: tlsCert, KeyFile: tlsKey, @@ -156,7 +156,7 @@ func DefaultBindOverrideToFlags() (flags []string) { } if noTls := viper.GetBool("no_tls"); noTls { flags = append(flags, "--no_tls") - } else if tlsCert, tlsKey := viper.GetString("tls_cert_file"), viper.GetString("tls_cert_key"); tlsCert != "" && tlsKey != "" { + } else if tlsCert, tlsKey := viper.GetString("tls_cert_file"), viper.GetString("tls_key_file"); tlsCert != "" && tlsKey != "" { flags = append(flags, "--tls_cert_file", tlsCert) flags = append(flags, "--tls_key_file", tlsKey) } else if leEmail, leAgree := viper.GetString("le_email"), viper.GetBool("le_agree"); leEmail != "" && leAgree {