Update .github/README.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
gaby/issue3095
Juan Calderon-Perez 2024-11-13 20:44:25 -05:00 committed by GitHub
parent a29edcff99
commit 5aae1c9d9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

5
.github/README.md vendored
View File

@ -645,10 +645,11 @@ import (
func main() {
app := fiber.New(fiber.Config{
// Trust all proxies (use with caution)
// Configure trusted proxies - WARNING: Only trust proxies you control
// Using TrustProxy: true with unrestricted IPs can lead to IP spoofing
TrustProxy: true,
TrustProxyConfig: fiber.TrustProxyConfig{
Proxies: []string{"0.0.0.0", "1.1.1.1/30"}, // IP address or IP address range
Proxies: []string{"10.0.0.0/8", "172.16.0.0/12"}, // Example: Internal network ranges only
},
ProxyHeader: fiber.HeaderXForwardedFor,
})