TrustProxyConfig Type — fiber Architecture
Architecture documentation for the TrustProxyConfig type/interface in app.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 19ceb809_fe35_6ced_171a_9ece8f7876e0["TrustProxyConfig"] 258982c0_9752_bf98_01ce_836d4de563e1["app.go"] 19ceb809_fe35_6ced_171a_9ece8f7876e0 -->|defined in| 258982c0_9752_bf98_01ce_836d4de563e1 style 19ceb809_fe35_6ced_171a_9ece8f7876e0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
app.go lines 438–462
type TrustProxyConfig struct {
ips map[string]struct{}
// Proxies is a list of trusted proxy IP addresses or CIDR ranges.
//
// Default: []string
Proxies []string `json:"proxies"`
ranges []*net.IPNet
// LinkLocal enables trusting all link-local IP ranges (e.g., 169.254.0.0/16, fe80::/10).
//
// Default: false
LinkLocal bool `json:"link_local"`
// Loopback enables trusting all loopback IP ranges (e.g., 127.0.0.0/8, ::1/128).
//
// Default: false
Loopback bool `json:"loopback"`
// Private enables trusting all private IP ranges (e.g., 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, fc00::/7).
//
// Default: false
Private bool `json:"private"`
}
Defined In
Source
Frequently Asked Questions
What is the TrustProxyConfig type?
TrustProxyConfig is a type/interface in the fiber codebase, defined in app.go.
Where is TrustProxyConfig defined?
TrustProxyConfig is defined in app.go at line 438.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free