This directive adds PROXY protocol (both v1 and v2) support to Caddy. The allows the client IP to be passed through a load balancer like those used in AWS or .
Enable PROXY Protocol Support
Requires all connections (both IPv4 and IPv6) to specify a PROXY header. Both V1 (human readable) and V2 (binary) protocol versions are supported, and will be auto-detected.
Filter by Source Address
proxyprotocol 10.22.0.0/16 10.23.0.1/32 ::/0
Custom Timeout
proxyprotocol { timeout 3s }
Changes the timeout for reading the complete PROXY header to 3 seconds. The default is 5 seconds.
Related Links
Documentation
Access the full documentation for this plugin off-site:
Get help from the maintainers of the http.proxyprotocol plugin:
Plugin Website
Visit http.proxyprotocol’s website for more information:
Plugin Author: Nathaniel Caza
Last Updated: 26 Jul 2019, 12:24 AM