Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForwardAuth ¶
type ForwardAuth struct { Address string `json:"address"` TrustedProxies []string `json:"trustedProxies"` TrustForwardedHeaders bool `json:"trustForwardedHeaders"` SetXOriginalURL bool `json:"setXOriginalURL"` AuthResponseHeaders []string `json:"authResponseHeaders"` AuthRequestHeaders []string `json:"authRequestHeaders"` UserHeaders UserHeaders `json:"userHeaders"` TLS *TLSSettings `json:"util"` // contains filtered or unexported fields }
ForwardAuth is the main Caddy module representation.
func (ForwardAuth) Authenticate ¶
func (m ForwardAuth) Authenticate(rw http.ResponseWriter, req *http.Request) (user caddyauth.User, authenticated bool, err error)
func (ForwardAuth) CaddyModule ¶
func (ForwardAuth) CaddyModule() caddy.ModuleInfo
func (*ForwardAuth) Provision ¶
func (m *ForwardAuth) Provision(ctx caddy.Context) (err error)
func (*ForwardAuth) Validate ¶
func (m *ForwardAuth) Validate() (err error)
type TLSSettings ¶
type TLSSettings struct { CA string `json:"ca"` CAOptional bool `json:"caOptional"` CAIncludeSystem bool `json:"caIncludeSystem"` Certificate string `json:"cert"` Key string `json:"key"` InsecureSkipVerify bool `json:"insecureSkipVerify"` Configuration *tls.Config `json:"-"` }
TLSSettings are settings specific to TLS.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.