0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2024-09-30 16:32:36 +02:00
nextcloud-docker/18.0/apache/config/reverse_proxy.config.php

11 lines
243 B
PHP
Raw Normal View History

<?php
$trustedProxies = getenv('TRUSTED_PROXIES');
if ($trustedProxies) {
$trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
} else {
$trustedProxies = null;
}
$CONFIG['trusted_proxies'] = $trustedProxies;