From 83255f2385366553d47a9409a3696ff64778057e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Mar=C3=B3y?= Date: Sun, 5 Apr 2020 15:35:28 +0200 Subject: [PATCH] Change reverse proxy default values to null MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: András Maróy --- .config/reverse-proxy.config.php | 10 +++++----- 16.0/apache/config/reverse-proxy.config.php | 10 +++++----- 16.0/fpm-alpine/config/reverse-proxy.config.php | 10 +++++----- 16.0/fpm/config/reverse-proxy.config.php | 10 +++++----- 17.0/apache/config/reverse-proxy.config.php | 10 +++++----- 17.0/fpm-alpine/config/reverse-proxy.config.php | 10 +++++----- 17.0/fpm/config/reverse-proxy.config.php | 10 +++++----- 18.0/apache/config/reverse-proxy.config.php | 10 +++++----- 18.0/fpm-alpine/config/reverse-proxy.config.php | 10 +++++----- 18.0/fpm/config/reverse-proxy.config.php | 10 +++++----- 10 files changed, 50 insertions(+), 50 deletions(-) diff --git a/.config/reverse-proxy.config.php b/.config/reverse-proxy.config.php index 26342782..e38c3d04 100644 --- a/.config/reverse-proxy.config.php +++ b/.config/reverse-proxy.config.php @@ -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; } diff --git a/16.0/apache/config/reverse-proxy.config.php b/16.0/apache/config/reverse-proxy.config.php index 26342782..e38c3d04 100644 --- a/16.0/apache/config/reverse-proxy.config.php +++ b/16.0/apache/config/reverse-proxy.config.php @@ -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; } diff --git a/16.0/fpm-alpine/config/reverse-proxy.config.php b/16.0/fpm-alpine/config/reverse-proxy.config.php index 26342782..e38c3d04 100644 --- a/16.0/fpm-alpine/config/reverse-proxy.config.php +++ b/16.0/fpm-alpine/config/reverse-proxy.config.php @@ -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; } diff --git a/16.0/fpm/config/reverse-proxy.config.php b/16.0/fpm/config/reverse-proxy.config.php index 26342782..e38c3d04 100644 --- a/16.0/fpm/config/reverse-proxy.config.php +++ b/16.0/fpm/config/reverse-proxy.config.php @@ -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; } diff --git a/17.0/apache/config/reverse-proxy.config.php b/17.0/apache/config/reverse-proxy.config.php index 26342782..e38c3d04 100644 --- a/17.0/apache/config/reverse-proxy.config.php +++ b/17.0/apache/config/reverse-proxy.config.php @@ -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; } diff --git a/17.0/fpm-alpine/config/reverse-proxy.config.php b/17.0/fpm-alpine/config/reverse-proxy.config.php index 26342782..e38c3d04 100644 --- a/17.0/fpm-alpine/config/reverse-proxy.config.php +++ b/17.0/fpm-alpine/config/reverse-proxy.config.php @@ -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; } diff --git a/17.0/fpm/config/reverse-proxy.config.php b/17.0/fpm/config/reverse-proxy.config.php index 26342782..e38c3d04 100644 --- a/17.0/fpm/config/reverse-proxy.config.php +++ b/17.0/fpm/config/reverse-proxy.config.php @@ -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; } diff --git a/18.0/apache/config/reverse-proxy.config.php b/18.0/apache/config/reverse-proxy.config.php index 26342782..e38c3d04 100644 --- a/18.0/apache/config/reverse-proxy.config.php +++ b/18.0/apache/config/reverse-proxy.config.php @@ -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; } diff --git a/18.0/fpm-alpine/config/reverse-proxy.config.php b/18.0/fpm-alpine/config/reverse-proxy.config.php index 26342782..e38c3d04 100644 --- a/18.0/fpm-alpine/config/reverse-proxy.config.php +++ b/18.0/fpm-alpine/config/reverse-proxy.config.php @@ -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; } diff --git a/18.0/fpm/config/reverse-proxy.config.php b/18.0/fpm/config/reverse-proxy.config.php index 26342782..e38c3d04 100644 --- a/18.0/fpm/config/reverse-proxy.config.php +++ b/18.0/fpm/config/reverse-proxy.config.php @@ -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; }