Skip to content

Commit

Permalink
config: add tls for http API
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed Dec 7, 2021
1 parent 722c0de commit 1b4a736
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ import (
// Config is the configuration object for the commands in
// github.com/quay/clair/v4/cmd/...
type Config struct {
// TLS configures HTTPS support.
//
// Note that any non-trivial deployment means the certificate provided here
// will need to be for the name the load balancer uses to connect to a given
// Clair instance.
//
// This is not used for outgoing requests; setting the SSL_CERT_DIR
// environment variable is the recommended way to do that. The release
// container has `/var/run/certs` added to the list already.
TLS *TLS `yaml:"tls,omitempty" json:"tls,omitempty"`
// Sets which mode the clair instance will run.
Mode Mode `yaml:"-" json:"-"`
// A string in <host>:<port> format where <host> can be an empty string.
Expand Down

0 comments on commit 1b4a736

Please sign in to comment.