0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-19 12:55:08 +01:00
nextcloud-docker/.config/trusted_proxies.config.php
Daniel Kesselberg dfefebb126 Read value for trusted_proxies from env
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2019-10-08 15:31:08 +02:00

7 lines
No EOL
212 B
PHP

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