mirror of
https://github.com/nextcloud/docker.git
synced 2025-06-17 08:34:48 +02:00
Remove default null from reverse proxy config to avoid breaking existing deployments
Signed-off-by: András Maróy <andras@maroy.hu>
This commit is contained in:
parent
8b4bb96e53
commit
a4d2933547
14 changed files with 2 additions and 130 deletions
|
@ -2,34 +2,24 @@
|
|||
$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;
|
||||
}
|
||||
|
||||
$trustedProxies = getenv('TRUSTED_PROXIES');
|
||||
if ($trustedProxies) {
|
||||
$CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies)));
|
||||
} else {
|
||||
$CONFIG['trusted_proxies'] = null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue