mirror of
https://github.com/nextcloud/docker.git
synced 2025-01-20 12:53:54 +01:00
63438ef792
* Disable rewrite ip for apache image Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> * Run update.sh Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
11 lines
No EOL
243 B
PHP
11 lines
No EOL
243 B
PHP
<?php
|
|
|
|
$trustedProxies = getenv('TRUSTED_PROXIES');
|
|
|
|
if ($trustedProxies) {
|
|
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
|
} else {
|
|
$trustedProxies = null;
|
|
}
|
|
|
|
$CONFIG['trusted_proxies'] = $trustedProxies; |