summaryrefslogtreecommitdiffstats
path: root/16.0/fpm/config/reverse_proxy.config.php
blob: 26a8bff3acb70b493adee79db31739346ef77627 (plain)
1
2
3
4
5
6
7
8
9
10
11
<?php

$trustedProxies = getenv('TRUSTED_PROXIES');

if ($trustedProxies) {
  $trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies)));
} else {
  $trustedProxies = null;
}

$CONFIG['trusted_proxies'] = $trustedProxies;