0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-14 18:35:08 +01:00

Change reverse proxy default values to null

Signed-off-by: András Maróy <andras@maroy.hu>
This commit is contained in:
András Maróy 2020-04-05 15:35:28 +02:00
parent 2b2bd3c6aa
commit 83255f2385
10 changed files with 50 additions and 50 deletions

View file

@ -2,29 +2,29 @@
if (getenv('OVERWRITEHOST')) {
$CONFIG['overwritehost'] = getenv('OVERWRITEHOST');
} else {
$CONFIG['overwritehost'] = '';
$CONFIG['overwritehost'] = null;
}
if (getenv('OVERWRITEPROTOCOL')) {
$CONFIG['overwriteprotocol'] = getenv('OVERWRITEPROTOCOL');
} else {
$CONFIG['overwriteprotocol'] = '';
$CONFIG['overwriteprotocol'] = null;
}
if (getenv('OVERWRITEWEBROOT')) {
$CONFIG['overwritewebroot'] = getenv('OVERWRITEWEBROOT');
} else {
$CONFIG['overwritewebroot'] = '';
$CONFIG['overwritewebroot'] = null;
}
if (getenv('OVERWRITECONDADDR')) {
$CONFIG['overwritecondaddr'] = getenv('OVERWRITECONDADDR');
} else {
$CONFIG['overwritecondaddr'] = '';
$CONFIG['overwritecondaddr'] = null;
}
if (getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(',', getenv('TRUSTED_PROXIES'));
} else {
$CONFIG['trusted_proxies'] = [];
$CONFIG['trusted_proxies'] = null;
}

View file

@ -2,29 +2,29 @@
if (getenv('OVERWRITEHOST')) {
$CONFIG['overwritehost'] = getenv('OVERWRITEHOST');
} else {
$CONFIG['overwritehost'] = '';
$CONFIG['overwritehost'] = null;
}
if (getenv('OVERWRITEPROTOCOL')) {
$CONFIG['overwriteprotocol'] = getenv('OVERWRITEPROTOCOL');
} else {
$CONFIG['overwriteprotocol'] = '';
$CONFIG['overwriteprotocol'] = null;
}
if (getenv('OVERWRITEWEBROOT')) {
$CONFIG['overwritewebroot'] = getenv('OVERWRITEWEBROOT');
} else {
$CONFIG['overwritewebroot'] = '';
$CONFIG['overwritewebroot'] = null;
}
if (getenv('OVERWRITECONDADDR')) {
$CONFIG['overwritecondaddr'] = getenv('OVERWRITECONDADDR');
} else {
$CONFIG['overwritecondaddr'] = '';
$CONFIG['overwritecondaddr'] = null;
}
if (getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(',', getenv('TRUSTED_PROXIES'));
} else {
$CONFIG['trusted_proxies'] = [];
$CONFIG['trusted_proxies'] = null;
}

View file

@ -2,29 +2,29 @@
if (getenv('OVERWRITEHOST')) {
$CONFIG['overwritehost'] = getenv('OVERWRITEHOST');
} else {
$CONFIG['overwritehost'] = '';
$CONFIG['overwritehost'] = null;
}
if (getenv('OVERWRITEPROTOCOL')) {
$CONFIG['overwriteprotocol'] = getenv('OVERWRITEPROTOCOL');
} else {
$CONFIG['overwriteprotocol'] = '';
$CONFIG['overwriteprotocol'] = null;
}
if (getenv('OVERWRITEWEBROOT')) {
$CONFIG['overwritewebroot'] = getenv('OVERWRITEWEBROOT');
} else {
$CONFIG['overwritewebroot'] = '';
$CONFIG['overwritewebroot'] = null;
}
if (getenv('OVERWRITECONDADDR')) {
$CONFIG['overwritecondaddr'] = getenv('OVERWRITECONDADDR');
} else {
$CONFIG['overwritecondaddr'] = '';
$CONFIG['overwritecondaddr'] = null;
}
if (getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(',', getenv('TRUSTED_PROXIES'));
} else {
$CONFIG['trusted_proxies'] = [];
$CONFIG['trusted_proxies'] = null;
}

View file

@ -2,29 +2,29 @@
if (getenv('OVERWRITEHOST')) {
$CONFIG['overwritehost'] = getenv('OVERWRITEHOST');
} else {
$CONFIG['overwritehost'] = '';
$CONFIG['overwritehost'] = null;
}
if (getenv('OVERWRITEPROTOCOL')) {
$CONFIG['overwriteprotocol'] = getenv('OVERWRITEPROTOCOL');
} else {
$CONFIG['overwriteprotocol'] = '';
$CONFIG['overwriteprotocol'] = null;
}
if (getenv('OVERWRITEWEBROOT')) {
$CONFIG['overwritewebroot'] = getenv('OVERWRITEWEBROOT');
} else {
$CONFIG['overwritewebroot'] = '';
$CONFIG['overwritewebroot'] = null;
}
if (getenv('OVERWRITECONDADDR')) {
$CONFIG['overwritecondaddr'] = getenv('OVERWRITECONDADDR');
} else {
$CONFIG['overwritecondaddr'] = '';
$CONFIG['overwritecondaddr'] = null;
}
if (getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(',', getenv('TRUSTED_PROXIES'));
} else {
$CONFIG['trusted_proxies'] = [];
$CONFIG['trusted_proxies'] = null;
}

View file

@ -2,29 +2,29 @@
if (getenv('OVERWRITEHOST')) {
$CONFIG['overwritehost'] = getenv('OVERWRITEHOST');
} else {
$CONFIG['overwritehost'] = '';
$CONFIG['overwritehost'] = null;
}
if (getenv('OVERWRITEPROTOCOL')) {
$CONFIG['overwriteprotocol'] = getenv('OVERWRITEPROTOCOL');
} else {
$CONFIG['overwriteprotocol'] = '';
$CONFIG['overwriteprotocol'] = null;
}
if (getenv('OVERWRITEWEBROOT')) {
$CONFIG['overwritewebroot'] = getenv('OVERWRITEWEBROOT');
} else {
$CONFIG['overwritewebroot'] = '';
$CONFIG['overwritewebroot'] = null;
}
if (getenv('OVERWRITECONDADDR')) {
$CONFIG['overwritecondaddr'] = getenv('OVERWRITECONDADDR');
} else {
$CONFIG['overwritecondaddr'] = '';
$CONFIG['overwritecondaddr'] = null;
}
if (getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(',', getenv('TRUSTED_PROXIES'));
} else {
$CONFIG['trusted_proxies'] = [];
$CONFIG['trusted_proxies'] = null;
}

View file

@ -2,29 +2,29 @@
if (getenv('OVERWRITEHOST')) {
$CONFIG['overwritehost'] = getenv('OVERWRITEHOST');
} else {
$CONFIG['overwritehost'] = '';
$CONFIG['overwritehost'] = null;
}
if (getenv('OVERWRITEPROTOCOL')) {
$CONFIG['overwriteprotocol'] = getenv('OVERWRITEPROTOCOL');
} else {
$CONFIG['overwriteprotocol'] = '';
$CONFIG['overwriteprotocol'] = null;
}
if (getenv('OVERWRITEWEBROOT')) {
$CONFIG['overwritewebroot'] = getenv('OVERWRITEWEBROOT');
} else {
$CONFIG['overwritewebroot'] = '';
$CONFIG['overwritewebroot'] = null;
}
if (getenv('OVERWRITECONDADDR')) {
$CONFIG['overwritecondaddr'] = getenv('OVERWRITECONDADDR');
} else {
$CONFIG['overwritecondaddr'] = '';
$CONFIG['overwritecondaddr'] = null;
}
if (getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(',', getenv('TRUSTED_PROXIES'));
} else {
$CONFIG['trusted_proxies'] = [];
$CONFIG['trusted_proxies'] = null;
}

View file

@ -2,29 +2,29 @@
if (getenv('OVERWRITEHOST')) {
$CONFIG['overwritehost'] = getenv('OVERWRITEHOST');
} else {
$CONFIG['overwritehost'] = '';
$CONFIG['overwritehost'] = null;
}
if (getenv('OVERWRITEPROTOCOL')) {
$CONFIG['overwriteprotocol'] = getenv('OVERWRITEPROTOCOL');
} else {
$CONFIG['overwriteprotocol'] = '';
$CONFIG['overwriteprotocol'] = null;
}
if (getenv('OVERWRITEWEBROOT')) {
$CONFIG['overwritewebroot'] = getenv('OVERWRITEWEBROOT');
} else {
$CONFIG['overwritewebroot'] = '';
$CONFIG['overwritewebroot'] = null;
}
if (getenv('OVERWRITECONDADDR')) {
$CONFIG['overwritecondaddr'] = getenv('OVERWRITECONDADDR');
} else {
$CONFIG['overwritecondaddr'] = '';
$CONFIG['overwritecondaddr'] = null;
}
if (getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(',', getenv('TRUSTED_PROXIES'));
} else {
$CONFIG['trusted_proxies'] = [];
$CONFIG['trusted_proxies'] = null;
}

View file

@ -2,29 +2,29 @@
if (getenv('OVERWRITEHOST')) {
$CONFIG['overwritehost'] = getenv('OVERWRITEHOST');
} else {
$CONFIG['overwritehost'] = '';
$CONFIG['overwritehost'] = null;
}
if (getenv('OVERWRITEPROTOCOL')) {
$CONFIG['overwriteprotocol'] = getenv('OVERWRITEPROTOCOL');
} else {
$CONFIG['overwriteprotocol'] = '';
$CONFIG['overwriteprotocol'] = null;
}
if (getenv('OVERWRITEWEBROOT')) {
$CONFIG['overwritewebroot'] = getenv('OVERWRITEWEBROOT');
} else {
$CONFIG['overwritewebroot'] = '';
$CONFIG['overwritewebroot'] = null;
}
if (getenv('OVERWRITECONDADDR')) {
$CONFIG['overwritecondaddr'] = getenv('OVERWRITECONDADDR');
} else {
$CONFIG['overwritecondaddr'] = '';
$CONFIG['overwritecondaddr'] = null;
}
if (getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(',', getenv('TRUSTED_PROXIES'));
} else {
$CONFIG['trusted_proxies'] = [];
$CONFIG['trusted_proxies'] = null;
}

View file

@ -2,29 +2,29 @@
if (getenv('OVERWRITEHOST')) {
$CONFIG['overwritehost'] = getenv('OVERWRITEHOST');
} else {
$CONFIG['overwritehost'] = '';
$CONFIG['overwritehost'] = null;
}
if (getenv('OVERWRITEPROTOCOL')) {
$CONFIG['overwriteprotocol'] = getenv('OVERWRITEPROTOCOL');
} else {
$CONFIG['overwriteprotocol'] = '';
$CONFIG['overwriteprotocol'] = null;
}
if (getenv('OVERWRITEWEBROOT')) {
$CONFIG['overwritewebroot'] = getenv('OVERWRITEWEBROOT');
} else {
$CONFIG['overwritewebroot'] = '';
$CONFIG['overwritewebroot'] = null;
}
if (getenv('OVERWRITECONDADDR')) {
$CONFIG['overwritecondaddr'] = getenv('OVERWRITECONDADDR');
} else {
$CONFIG['overwritecondaddr'] = '';
$CONFIG['overwritecondaddr'] = null;
}
if (getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(',', getenv('TRUSTED_PROXIES'));
} else {
$CONFIG['trusted_proxies'] = [];
$CONFIG['trusted_proxies'] = null;
}

View file

@ -2,29 +2,29 @@
if (getenv('OVERWRITEHOST')) {
$CONFIG['overwritehost'] = getenv('OVERWRITEHOST');
} else {
$CONFIG['overwritehost'] = '';
$CONFIG['overwritehost'] = null;
}
if (getenv('OVERWRITEPROTOCOL')) {
$CONFIG['overwriteprotocol'] = getenv('OVERWRITEPROTOCOL');
} else {
$CONFIG['overwriteprotocol'] = '';
$CONFIG['overwriteprotocol'] = null;
}
if (getenv('OVERWRITEWEBROOT')) {
$CONFIG['overwritewebroot'] = getenv('OVERWRITEWEBROOT');
} else {
$CONFIG['overwritewebroot'] = '';
$CONFIG['overwritewebroot'] = null;
}
if (getenv('OVERWRITECONDADDR')) {
$CONFIG['overwritecondaddr'] = getenv('OVERWRITECONDADDR');
} else {
$CONFIG['overwritecondaddr'] = '';
$CONFIG['overwritecondaddr'] = null;
}
if (getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(',', getenv('TRUSTED_PROXIES'));
} else {
$CONFIG['trusted_proxies'] = [];
$CONFIG['trusted_proxies'] = null;
}