0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-04-24 20:34:10 +02:00

Disable rewriteip for apache image (#1010)

* 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>
This commit is contained in:
kesselb 2020-04-06 22:44:58 +02:00 committed by GitHub
parent efe3caebdc
commit 63438ef792
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 178 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;