Skip to content

Commit

Permalink
Add FORWARDED_FOR_HEADERS to the reverse-proxy config
Browse files Browse the repository at this point in the history
  • Loading branch information
dgiebert committed Jul 29, 2024
1 parent ddc5afc commit a4931b0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ $trustedProxies = getenv('TRUSTED_PROXIES');
if ($trustedProxies) {
$CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies)));
}

$forwardedForHeaders = getenv('FORWARDED_FOR_HEADERS');
if ($forwardedForHeaders) {
$CONFIG['forwarded_for_headers'] = array_filter(array_map('trim', explode(' ', $forwardedForHeaders)));
}

0 comments on commit a4931b0

Please sign in to comment.