1
0
Fork 0

Respect Forwarded-For headers

This commit is contained in:
Philipp Holzer 2022-06-23 22:42:35 +02:00
commit d441b90bda
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
11 changed files with 355 additions and 43 deletions

View file

@ -632,6 +632,16 @@ return [
// Timeout in seconds for fetching the XRD links and other requests with an expected shorter timeout
'xrd_timeout' => 20,
],
'proxy' => [
// forwarded_for_headers (String)
// A comma separated list of all allowed header values to retrieve the real client IP
'forwarded_for_headers' => 'HTTP_X_FORWARDED_FOR',
// trusted_proxies (String)
// A comma separated list of all trusted proxies, which will get skipped during client IP retrieval
// IP ranges and CIDR notations are allowed
'trusted_proxies' => '',
],
'experimental' => [
// exp_themes (Boolean)
// Show experimental themes in user settings.