2020-03-28 17:40:50 +01:00
|
|
|
<?php
|
2020-04-08 21:24:51 +02:00
|
|
|
$overwriteHost = getenv('OVERWRITEHOST');
|
|
|
|
if ($overwriteHost) {
|
|
|
|
$CONFIG['overwritehost'] = $overwriteHost;
|
2020-04-05 15:16:49 +02:00
|
|
|
} else {
|
2020-04-05 15:35:28 +02:00
|
|
|
$CONFIG['overwritehost'] = null;
|
2020-03-28 17:40:50 +01:00
|
|
|
}
|
|
|
|
|
2020-04-08 21:24:51 +02:00
|
|
|
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
|
|
|
|
if ($overwriteProtocol) {
|
|
|
|
$CONFIG['overwriteprotocol'] = $overwriteProtocol;
|
2020-04-05 15:16:49 +02:00
|
|
|
} else {
|
2020-04-05 15:35:28 +02:00
|
|
|
$CONFIG['overwriteprotocol'] = null;
|
2020-03-28 17:40:50 +01:00
|
|
|
}
|
|
|
|
|
2020-04-08 21:24:51 +02:00
|
|
|
$overwriteWebRoot = getenv('OVERWRITEWEBROOT');
|
|
|
|
if ($overwriteWebRoot) {
|
|
|
|
$CONFIG['overwritewebroot'] = $overwriteWebRoot;
|
2020-04-05 15:16:49 +02:00
|
|
|
} else {
|
2020-04-05 15:35:28 +02:00
|
|
|
$CONFIG['overwritewebroot'] = null;
|
2020-03-28 17:40:50 +01:00
|
|
|
}
|
|
|
|
|
2020-04-08 21:24:51 +02:00
|
|
|
$overwriteCondAddr = getenv('OVERWRITECONDADDR');
|
|
|
|
if ($overwriteCondAddr) {
|
|
|
|
$CONFIG['overwritecondaddr'] = $overwriteCondAddr;
|
2020-04-05 15:16:49 +02:00
|
|
|
} else {
|
2020-04-05 15:35:28 +02:00
|
|
|
$CONFIG['overwritecondaddr'] = null;
|
2020-03-28 17:40:50 +01:00
|
|
|
}
|
|
|
|
|
2020-04-08 21:24:51 +02:00
|
|
|
$trustedProxies = getenv('TRUSTED_PROXIES');
|
|
|
|
if ($trustedProxies) {
|
|
|
|
$CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
2020-04-05 15:16:49 +02:00
|
|
|
} else {
|
2020-04-05 15:35:28 +02:00
|
|
|
$CONFIG['trusted_proxies'] = null;
|
2020-03-28 17:40:50 +01:00
|
|
|
}
|