mirror of
https://github.com/nextcloud/docker.git
synced 2025-03-17 20:05:09 +01:00
35 lines
877 B
PHP
35 lines
877 B
PHP
<?php
|
|
$overwritehost = getenv('OVERWRITEHOST');
|
|
if ($overwritehost) {
|
|
$CONFIG['overwritehost'] = $overwritehost;
|
|
} else {
|
|
$CONFIG['overwritehost'] = null;
|
|
}
|
|
|
|
$overwriteprotocol = getenv('OVERWRITEPROTOCOL');
|
|
if ($overwriteprotocol) {
|
|
$CONFIG['overwriteprotocol'] = $overwriteprotocol;
|
|
} else {
|
|
$CONFIG['overwriteprotocol'] = null;
|
|
}
|
|
|
|
$overwritewebroot = getenv('OVERWRITEWEBROOT');
|
|
if ($overwritewebroot) {
|
|
$CONFIG['overwritewebroot'] = $overwritewebroot;
|
|
} else {
|
|
$CONFIG['overwritewebroot'] = null;
|
|
}
|
|
|
|
$overwritecondaddr = getenv('OVERWRITECONDADDR');
|
|
if ($overwritecondaddr) {
|
|
$CONFIG['overwritecondaddr'] = $overwritecondaddr;
|
|
} else {
|
|
$CONFIG['overwritecondaddr'] = null;
|
|
}
|
|
|
|
$trusted_proxies = getenv('TRUSTED_PROXIES');
|
|
if ($trusted_proxies) {
|
|
$CONFIG['trusted_proxies'] = explode(',', $trusted_proxies);
|
|
} else {
|
|
$CONFIG['trusted_proxies'] = null;
|
|
}
|