Skip to content

Commit

Permalink
Update YAML keys for redis.tls config for consistency (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzhao authored Feb 17, 2024
1 parent 2e75b8f commit 51aba73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xtls/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ type Config struct {
Insecure bool `json:"insecure" yaml:"insecure"`

// Server name indication for TLS.
ServerName string `json:"serverName" yaml:"serverName"`
ServerName string `json:"serverName" yaml:"server_name"`

// File containing trusted root certificates for verifying the server.
CACertFile string `json:"caCertFile" yaml:"caCertFile"`
CACertFile string `json:"caCertFile" yaml:"ca_cert_file"`

// File containing client certificate (public key), to present to the
// server. Must also provide @ClientKey option.
ClientCertFile string `json:"clientCertFile" yaml:"clientCertFile"`
ClientCertFile string `json:"clientCertFile" yaml:"client_cert_file"`

// File containing client private key, to present to the server.
// Must also provide @ClientCert option.
ClientKeyFile string `json:"clientKeyFile" yaml:"clientKeyFile"`
ClientKeyFile string `json:"clientKeyFile" yaml:"client_key_file"`
}

var ErrFailedToLoadCACert = errors.New("failed to load CACertificate")
Expand Down

0 comments on commit 51aba73

Please sign in to comment.