Documentation
¶
Overview ¶
Package proxy provides an HTTP middleware plugin for RoadRunner that resolves the real client IP address from proxy headers (X-Forwarded-For, X-Real-Ip, True-Client-Ip, CF-Connecting-Ip, Forwarded) when requests arrive through trusted subnets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// TrustedSubnets declare IP subnets which are allowed to set ip using X-Real-Ip and X-Forwarded-For
TrustedSubnets []string `mapstructure:"trusted_subnets"`
}
type Configurer ¶
Click to show internal directories.
Click to hide internal directories.