Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { ServerNames []string `yaml:"serverNames"` ClientAuth bool `yaml:"clientAuth"` ClientCAs string `yaml:"clientCAs"` Addresses []string `yaml:"addresses"` UseTLS bool `yaml:"useTLS"` InsecureSkipVerify bool `yaml:"insecureSkipVerify"` ForwardServerName string `yaml:"forwardServerName"` ForwardRootCAs string `yaml:"forwardRootCAs"` ForwardTimeout time.Duration `yaml:"forwardTimeout"` // contains filtered or unexported fields }
Backend encapsulates the data of one backend.
type Config ¶
type Config struct { HTTPAddr string `yaml:"httpAddr"` TLSAddr string `yaml:"tlsAddr"` CacheDir string `yaml:"cacheDir"` Backends []*Backend `yaml:"backends"` Email string `yaml:"email"` MaxOpen int `yaml:"maxOpen"` }
Config is the TLS proxy configuration.
func ReadConfig ¶
ReadConfig reads and validates a YAML config file.
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy receives TLS connections and forwards them to the configured backends.
func (*Proxy) Reconfigure ¶
Reconfigure updates the proxy's configuration. Some parameters cannot be changed after Start has been called, e.g. HTTPAddr, TLSAddr, CacheDir.
Click to show internal directories.
Click to hide internal directories.