2020-04-16 17:54:48 +02:00
|
|
|
<?php
|
|
|
|
$overwriteHost = getenv('OVERWRITEHOST');
|
|
|
|
if ($overwriteHost) {
|
|
|
|
$CONFIG['overwritehost'] = $overwriteHost;
|
|
|
|
}
|
|
|
|
|
|
|
|
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
|
|
|
|
if ($overwriteProtocol) {
|
|
|
|
$CONFIG['overwriteprotocol'] = $overwriteProtocol;
|
|
|
|
}
|
|
|
|
|
2021-11-25 14:03:48 +01:00
|
|
|
$overwriteCliUrl = getenv('OVERWRITECLIURL');
|
|
|
|
if ($overwriteCliUrl) {
|
|
|
|
$CONFIG['overwrite.cli.url'] = $overwriteCliUrl;
|
|
|
|
}
|
|
|
|
|
2020-04-16 17:54:48 +02:00
|
|
|
$overwriteWebRoot = getenv('OVERWRITEWEBROOT');
|
|
|
|
if ($overwriteWebRoot) {
|
|
|
|
$CONFIG['overwritewebroot'] = $overwriteWebRoot;
|
|
|
|
}
|
|
|
|
|
|
|
|
$overwriteCondAddr = getenv('OVERWRITECONDADDR');
|
|
|
|
if ($overwriteCondAddr) {
|
|
|
|
$CONFIG['overwritecondaddr'] = $overwriteCondAddr;
|
|
|
|
}
|
|
|
|
|
|
|
|
$trustedProxies = getenv('TRUSTED_PROXIES');
|
|
|
|
if ($trustedProxies) {
|
|
|
|
$CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
|
|
|
}
|