summaryrefslogtreecommitdiffstats
path: root/19.0-rc/fpm-alpine/config/reverse-proxy.config.php
diff options
context:
space:
mode:
authortilosp-bot <git-bot@tilosp.de>2020-08-20 14:00:22 +0000
committertilosp-bot <git-bot@tilosp.de>2020-08-20 14:00:22 +0000
commitbd4cf887a4741837c66ff4b8100a1787ebb6512c (patch)
treea8a200b14fb1ba6168fa7b68ff8e35fb406a08e1 /19.0-rc/fpm-alpine/config/reverse-proxy.config.php
parentabe8cd69a6a3eee4952d4faea9dfbda64c4cdb2b (diff)
Run update.sh
Signed-off-by: tilosp-bot <git-bot@tilosp.de>
Diffstat (limited to '19.0-rc/fpm-alpine/config/reverse-proxy.config.php')
-rw-r--r--19.0-rc/fpm-alpine/config/reverse-proxy.config.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/19.0-rc/fpm-alpine/config/reverse-proxy.config.php b/19.0-rc/fpm-alpine/config/reverse-proxy.config.php
new file mode 100644
index 00000000..667be312
--- /dev/null
+++ b/19.0-rc/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)));
+}