summaryrefslogtreecommitdiffstats
path: root/20.0-rc/fpm/config/reverse-proxy.config.php
diff options
context:
space:
mode:
authorGitHub Workflow <workflow@github.com>2020-10-20 01:14:16 +0000
committerGitHub Workflow <workflow@github.com>2020-10-20 01:14:16 +0000
commit8dfa8c3ccaa1bd74dee379d6651312a2665a2938 (patch)
tree2912a2aa226f6db9be968278b4e49b600194a643 /20.0-rc/fpm/config/reverse-proxy.config.php
parentb763515988e38400941aa36a0151a3a8ad0fe0fb (diff)
Runs update.sh
Diffstat (limited to '20.0-rc/fpm/config/reverse-proxy.config.php')
-rw-r--r--20.0-rc/fpm/config/reverse-proxy.config.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/20.0-rc/fpm/config/reverse-proxy.config.php b/20.0-rc/fpm/config/reverse-proxy.config.php
new file mode 100644
index 00000000..667be312
--- /dev/null
+++ b/20.0-rc/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)));
+}