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