diff options
author | GitHub Workflow <workflow@github.com> | 2021-07-06 17:51:01 +0000 |
---|---|---|
committer | GitHub Workflow <workflow@github.com> | 2021-07-06 17:51:01 +0000 |
commit | b6b9499252cd572f3bb903f2cb04d36ea880573f (patch) | |
tree | 04c76c07d8850cf48effe7b08ab33f5573e13ef9 /22.0/fpm/config/reverse-proxy.config.php | |
parent | 9c6af73a768dbe48fd0cfa9434ff46042b9573d3 (diff) |
Runs update.sh
Diffstat (limited to '22.0/fpm/config/reverse-proxy.config.php')
-rw-r--r-- | 22.0/fpm/config/reverse-proxy.config.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/22.0/fpm/config/reverse-proxy.config.php b/22.0/fpm/config/reverse-proxy.config.php new file mode 100644 index 00000000..667be312 --- /dev/null +++ b/22.0/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))); +} |