mirror of
https://github.com/nextcloud/docker.git
synced 2025-06-17 08:34:48 +02:00
Read value for trusted_proxies from env
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
a3ba284c78
commit
dfefebb126
2 changed files with 12 additions and 1 deletions
7
.config/trusted_proxies.config.php
Normal file
7
.config/trusted_proxies.config.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
if ($trustedProxies = getenv('TRUSTED_PROXIES')) {
|
||||
$CONFIG['trusted_proxies'] = explode(' ', $trustedProxies);
|
||||
} else {
|
||||
$CONFIG['trusted_proxies'] = ['172.16.0.0/12', '192.168.0.0/16', '10.0.0.0/8'];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue