2023-12-12 20:26:33 +01:00
|
|
|
<?php
|
|
|
|
$overwriteHost = getenv('OVERWRITEHOST');
|
|
|
|
if ($overwriteHost) {
|
|
|
|
$CONFIG['overwritehost'] = $overwriteHost;
|
|
|
|
}
|
|
|
|
|
|
|
|
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
|
|
|
|
if ($overwriteProtocol) {
|
|
|
|
$CONFIG['overwriteprotocol'] = $overwriteProtocol;
|
|
|
|
}
|
|
|
|
|
|
|
|
$overwriteCliUrl = getenv('OVERWRITECLIURL');
|
|
|
|
if ($overwriteCliUrl) {
|
|
|
|
$CONFIG['overwrite.cli.url'] = $overwriteCliUrl;
|
|
|
|
}
|
|
|
|
|
|
|
|
$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)));
|
|
|
|
}
|
2024-10-08 16:20:13 +02:00
|
|
|
|
|
|
|
$forwardedForHeaders = getenv('FORWARDED_FOR_HEADERS');
|
|
|
|
if ($forwardedForHeaders) {
|
|
|
|
$CONFIG['forwarded_for_headers'] = array_filter(array_map('trim', explode(' ', $forwardedForHeaders)));
|
|
|
|
}
|