Skip to content

Commit

Permalink
server: explain tlsconfig fields
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Egan <charlie@styra.com>
  • Loading branch information
charlieegan3 committed Nov 30, 2023
1 parent 756cc15 commit 22529a1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,16 @@ type Metrics interface {
// This configuration is used to configure file watchers to reload each file as it
// changes on disk.
type TLSConfig struct {
// CertFile is the path to the certificate file.
// CertFile is the path to the server's serving certificate file.
CertFile string

// KeyFile is the path to the key file.
// KeyFile is the path to the server's key file, completing the key pair for the
// CertFile certificate.
KeyFile string

// CertPoolFile is the path to the CA cert pool file.
// CertPoolFile is the path to the CA cert pool file. The contents of this file will be
// reloaded when the file changes on disk and used in the TLS config for new connections
// to the server.
CertPoolFile string
}

Expand Down

0 comments on commit 22529a1

Please sign in to comment.