0
0
Fork 0
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:
Daniel Kesselberg 2019-10-08 14:40:25 +02:00
parent a3ba284c78
commit dfefebb126
2 changed files with 12 additions and 1 deletions

View 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'];
}