summaryrefslogtreecommitdiffstats
path: root/17.0-rc/fpm/config/reverse-proxy.config.php
diff options
context:
space:
mode:
authorTilo Spannagel <development@tilosp.de>2020-08-21 17:38:03 +0200
committerGitHub <noreply@github.com>2020-08-21 17:38:03 +0200
commit65f3f6d167defbef27d01819da34314e0569040d (patch)
treed98b370029e81cc372069b0317fae5b54b3638c8 /17.0-rc/fpm/config/reverse-proxy.config.php
parentabe8cd69a6a3eee4952d4faea9dfbda64c4cdb2b (diff)
parent4afc60d530c971b50e9eccfccf9e41044423538c (diff)
Merge pull request #1205 from tilosp/bot/update
Run update.sh
Diffstat (limited to '17.0-rc/fpm/config/reverse-proxy.config.php')
-rw-r--r--17.0-rc/fpm/config/reverse-proxy.config.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/17.0-rc/fpm/config/reverse-proxy.config.php b/17.0-rc/fpm/config/reverse-proxy.config.php
new file mode 100644
index 00000000..667be312
--- /dev/null
+++ b/17.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)));
+}