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:
parent
efe3caebdc
commit
63438ef792
21 changed files with 178 additions and 0 deletions
11
18.0/apache/config/reverse_proxy.config.php
Normal file
11
18.0/apache/config/reverse_proxy.config.php
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue