summaryrefslogtreecommitdiffstats
path: root/20.0-rc/fpm/config/reverse-proxy.config.php
diff options
context:
space:
mode:
authortilosp-bot <git-bot@tilosp.de>2020-09-18 14:00:20 +0000
committertilosp-bot <git-bot@tilosp.de>2020-09-18 14:00:20 +0000
commitdf570ee1e3e46e3552fba2e01a7fcdc5bb306640 (patch)
treee18c521157b0dd85b3e598929e0dc4f591a28d61 /20.0-rc/fpm/config/reverse-proxy.config.php
parent9225c07b820b5fcb019633bbc3da527b81f11ff2 (diff)
Run update.sh
Signed-off-by: tilosp-bot <git-bot@tilosp.de>
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)));
+}