diff options
author | kesselb <mail@danielkesselberg.de> | 2020-04-06 22:44:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 20:44:58 +0000 |
commit | 63438ef792fdedd4ceb80664d22391aca21f6bd1 (patch) | |
tree | 8de06ae7850d3d7a45c38cc8fdec4ac83e69407f /18.0/apache/config | |
parent | efe3caebdcd0cf23553aedd8d0f56cea4a5053fa (diff) |
Disable rewriteip for apache image (#1010)
* Disable rewrite ip for apache image
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Run update.sh
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to '18.0/apache/config')
-rw-r--r-- | 18.0/apache/config/reverse_proxy.config.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/18.0/apache/config/reverse_proxy.config.php b/18.0/apache/config/reverse_proxy.config.php new file mode 100644 index 00000000..26a8bff3 --- /dev/null +++ b/18.0/apache/config/reverse_proxy.config.php @@ -0,0 +1,11 @@ +<?php + +$trustedProxies = getenv('TRUSTED_PROXIES'); + +if ($trustedProxies) { + $trustedProxies = array_filter(array_map('trim', explode(' ', $trustedProxies))); +} else { + $trustedProxies = null; +} + +$CONFIG['trusted_proxies'] = $trustedProxies;
\ No newline at end of file |