Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wrapper ¶
type Wrapper struct { // Timeout specifies an optional maximum time for the PROXY header to be received. If zero, timeout is disabled. Default is 5s. Timeout caddy.Duration `json:"timeout,omitempty"` // Allow is an optional list of CIDR ranges to allow/require PROXY headers from. Allow []string `json:"allow,omitempty"` // contains filtered or unexported fields }
Wrapper provides PROXY protocol support to Caddy by implementing the caddy.ListenerWrapper interface. It must be loaded before the `tls` listener.
func (Wrapper) CaddyModule ¶
func (Wrapper) CaddyModule() caddy.ModuleInfo
func (*Wrapper) UnmarshalCaddyfile ¶
UnmarshalCaddyfile sets up the listener wrapper from Caddyfile tokens. Syntax:
proxy_protocol { timeout <duration> allow <IPs...> }
Click to show internal directories.
Click to hide internal directories.