Skip to content

Commit

Permalink
Fix typo for tls_key_file (tls_cert_key)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed May 4, 2022
1 parent 491af7d commit 4ce2ecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/config/sites.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 4ce2ecf

Please sign in to comment.