summaryrefslogtreecommitdiffstats
path: root/18.0-rc/apache/config/reverse-proxy.config.php
diff options
context:
space:
mode:
authorGitHub Workflow <workflow@github.com>2020-09-05 01:46:19 +0000
committerGitHub Workflow <workflow@github.com>2020-09-05 01:46:19 +0000
commit1e2c9961f7a42b864a1ba99527d82671eee78245 (patch)
treeb52e993dade0ad17a0d60830847ba2abd6d8602a /18.0-rc/apache/config/reverse-proxy.config.php
parent27587700ee5d24ec685c8a62154d398a6648f2da (diff)
Runs update.sh
Diffstat (limited to '18.0-rc/apache/config/reverse-proxy.config.php')
-rw-r--r--18.0-rc/apache/config/reverse-proxy.config.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/18.0-rc/apache/config/reverse-proxy.config.php b/18.0-rc/apache/config/reverse-proxy.config.php
new file mode 100644
index 00000000..667be312
--- /dev/null
+++ b/18.0-rc/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)));
+}