No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md don't allow by default Feb 14, 2017
listeners.go use caddy.Listener Mar 10, 2017
setup.go don't allow by default Feb 14, 2017

README.md

Add PROXY protocol support to caddy

Syntax

proxyprotocol *cidr* ... {
    timeout *val*
}
  • cidr CIDR ranges to process PROXY headers from
  • val duration value (e.g. 5s, 1m)

The default timeout is 5s. Set to 0 or none to disable the timeout.

Examples

# Enable from any source (probably don't want this in prod)
proxyprotocol 0.0.0.0/0 ::/0

# Enable from local subnet and fixed IP
proxyprotocol 10.22.0.0/16 10.23.0.1/32

# Set header timeout
proxyprotocol 10.22.0.0/16 10.23.0.1/32 {
    timeout 5s
}