diff options
Diffstat (limited to '18.0')
-rw-r--r-- | 18.0/apache/config/reverse-proxy.config.php | 25 | ||||
-rw-r--r-- | 18.0/apache/config/reverse_proxy.config.php | 11 | ||||
-rw-r--r-- | 18.0/fpm-alpine/config/reverse-proxy.config.php | 25 | ||||
-rw-r--r-- | 18.0/fpm-alpine/config/reverse_proxy.config.php | 11 | ||||
-rw-r--r-- | 18.0/fpm/config/reverse-proxy.config.php | 25 | ||||
-rw-r--r-- | 18.0/fpm/config/reverse_proxy.config.php | 11 |
6 files changed, 75 insertions, 33 deletions
diff --git a/18.0/apache/config/reverse-proxy.config.php b/18.0/apache/config/reverse-proxy.config.php new file mode 100644 index 00000000..667be312 --- /dev/null +++ b/18.0/apache/config/reverse-proxy.config.php @@ -0,0 +1,25 @@ +<?php +$overwriteHost = getenv('OVERWRITEHOST'); +if ($overwriteHost) { + $CONFIG['overwritehost'] = $overwriteHost; +} + +$overwriteProtocol = getenv('OVERWRITEPROTOCOL'); +if ($overwriteProtocol) { + $CONFIG['overwriteprotocol'] = $overwriteProtocol; +} + +$overwriteWebRoot = getenv('OVERWRITEWEBROOT'); +if ($overwriteWebRoot) { + $CONFIG['overwritewebroot'] = $overwriteWebRoot; +} + +$overwriteCondAddr = getenv('OVERWRITECONDADDR'); +if ($overwriteCondAddr) { + $CONFIG['overwritecondaddr'] = $overwriteCondAddr; +} + +$trustedProxies = getenv('TRUSTED_PROXIES'); +if ($trustedProxies) { + $CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies))); +} diff --git a/18.0/apache/config/reverse_proxy.config.php b/18.0/apache/config/reverse_proxy.config.php deleted file mode 100644 index 26a8bff3..00000000 --- a/18.0/apache/config/reverse_proxy.config.php +++ /dev/null @@ -1,11 +0,0 @@ -<?php - -$trustedProxies = getenv('TRUSTED_PROXIES'); - -if ($trustedProxies) { - $trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies))); -} else { - $trustedProxies = null; -} - -$CONFIG['trusted_proxies'] = $trustedProxies;
\ No newline at end of file diff --git a/18.0/fpm-alpine/config/reverse-proxy.config.php b/18.0/fpm-alpine/config/reverse-proxy.config.php new file mode 100644 index 00000000..667be312 --- /dev/null +++ b/18.0/fpm-alpine/config/reverse-proxy.config.php @@ -0,0 +1,25 @@ +<?php +$overwriteHost = getenv('OVERWRITEHOST'); +if ($overwriteHost) { + $CONFIG['overwritehost'] = $overwriteHost; +} + +$overwriteProtocol = getenv('OVERWRITEPROTOCOL'); +if ($overwriteProtocol) { + $CONFIG['overwriteprotocol'] = $overwriteProtocol; +} + +$overwriteWebRoot = getenv('OVERWRITEWEBROOT'); +if ($overwriteWebRoot) { + $CONFIG['overwritewebroot'] = $overwriteWebRoot; +} + +$overwriteCondAddr = getenv('OVERWRITECONDADDR'); +if ($overwriteCondAddr) { + $CONFIG['overwritecondaddr'] = $overwriteCondAddr; +} + +$trustedProxies = getenv('TRUSTED_PROXIES'); +if ($trustedProxies) { + $CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies))); +} diff --git a/18.0/fpm-alpine/config/reverse_proxy.config.php b/18.0/fpm-alpine/config/reverse_proxy.config.php deleted file mode 100644 index 26a8bff3..00000000 --- a/18.0/fpm-alpine/config/reverse_proxy.config.php +++ /dev/null @@ -1,11 +0,0 @@ -<?php - -$trustedProxies = getenv('TRUSTED_PROXIES'); - -if ($trustedProxies) { - $trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies))); -} else { - $trustedProxies = null; -} - -$CONFIG['trusted_proxies'] = $trustedProxies;
\ No newline at end of file diff --git a/18.0/fpm/config/reverse-proxy.config.php b/18.0/fpm/config/reverse-proxy.config.php new file mode 100644 index 00000000..667be312 --- /dev/null +++ b/18.0/fpm/config/reverse-proxy.config.php @@ -0,0 +1,25 @@ +<?php +$overwriteHost = getenv('OVERWRITEHOST'); +if ($overwriteHost) { + $CONFIG['overwritehost'] = $overwriteHost; +} + +$overwriteProtocol = getenv('OVERWRITEPROTOCOL'); +if ($overwriteProtocol) { + $CONFIG['overwriteprotocol'] = $overwriteProtocol; +} + +$overwriteWebRoot = getenv('OVERWRITEWEBROOT'); +if ($overwriteWebRoot) { + $CONFIG['overwritewebroot'] = $overwriteWebRoot; +} + +$overwriteCondAddr = getenv('OVERWRITECONDADDR'); +if ($overwriteCondAddr) { + $CONFIG['overwritecondaddr'] = $overwriteCondAddr; +} + +$trustedProxies = getenv('TRUSTED_PROXIES'); +if ($trustedProxies) { + $CONFIG['trusted_proxies'] = array_filter(array_map('trim', explode(' ', $trustedProxies))); +} diff --git a/18.0/fpm/config/reverse_proxy.config.php b/18.0/fpm/config/reverse_proxy.config.php deleted file mode 100644 index 26a8bff3..00000000 --- a/18.0/fpm/config/reverse_proxy.config.php +++ /dev/null @@ -1,11 +0,0 @@ -<?php - -$trustedProxies = getenv('TRUSTED_PROXIES'); - -if ($trustedProxies) { - $trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies))); -} else { - $trustedProxies = null; -} - -$CONFIG['trusted_proxies'] = $trustedProxies;
\ No newline at end of file |