0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-15 19:05:09 +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')) { if (getenv('OVERWRITEHOST')) {
$CONFIG['overwritehost'] = getenv('OVERWRITEHOST'); $CONFIG['overwritehost'] = getenv('OVERWRITEHOST');
} else { } else {
$CONFIG['overwritehost'] = ''; $CONFIG['overwritehost'] = null;
} }
if (getenv('OVERWRITEPROTOCOL')) { if (getenv('OVERWRITEPROTOCOL')) {
$CONFIG['overwriteprotocol'] = getenv('OVERWRITEPROTOCOL'); $CONFIG['overwriteprotocol'] = getenv('OVERWRITEPROTOCOL');
} else { } else {
$CONFIG['overwriteprotocol'] = ''; $CONFIG['overwriteprotocol'] = null;
} }
if (getenv('OVERWRITEWEBROOT')) { if (getenv('OVERWRITEWEBROOT')) {
$CONFIG['overwritewebroot'] = getenv('OVERWRITEWEBROOT'); $CONFIG['overwritewebroot'] = getenv('OVERWRITEWEBROOT');
} else { } else {
$CONFIG['overwritewebroot'] = ''; $CONFIG['overwritewebroot'] = null;
} }
if (getenv('OVERWRITECONDADDR')) { if (getenv('OVERWRITECONDADDR')) {
$CONFIG['overwritecondaddr'] = getenv('OVERWRITECONDADDR'); $CONFIG['overwritecondaddr'] = getenv('OVERWRITECONDADDR');
} else { } else {
$CONFIG['overwritecondaddr'] = ''; $CONFIG['overwritecondaddr'] = null;
} }
if (getenv('TRUSTED_PROXIES')) { if (getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(',', getenv('TRUSTED_PROXIES')); $CONFIG['trusted_proxies'] = explode(',', getenv('TRUSTED_PROXIES'));
} else { } else {
$CONFIG['trusted_proxies'] = []; $CONFIG['trusted_proxies'] = null;
} }

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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