Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (21 sloc) 547 Bytes

Add PROXY protocol support to caddy


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.


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

# Enable from local subnet and fixed IP

# Set header timeout
proxyprotocol {
    timeout 5s