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"` ClientACL *[]string `yaml:"clientACL"` ClientCAs string `yaml:"clientCAs"` // ALPNProtos specifies the list of ALPN procotols supported by this // backend. The ACME acme-tls/1 protocol doesn't need to be specified. // The default values are: h2, http/1.1 // Set the value to an empty slice to disable ALPN. // The negotiated protocol is forwarded to the backends that use TLS. // https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids ALPNProtos *[]string `yaml:"alpnProtos,omitempty"` Addresses []string `yaml:"addresses"` UseTLS bool `yaml:"useTLS"` InsecureSkipVerify bool `yaml:"insecureSkipVerify"` ForwardRateLimit int `yaml:"forwardRateLimit"` 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.