0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-06-17 16:44:46 +02:00

Disable rewrite ip for apache image

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2020-02-22 18:00:57 +01:00
parent efe3caebdc
commit 8f268a8dc4
3 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,11 @@
<?php
$trustedProxies = getenv('TRUSTED_PROXIES');
if ($trustedProxies) {
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
} else {
$trustedProxies = null;
}
$CONFIG['trusted_proxies'] = $trustedProxies;