summaryrefslogtreecommitdiffstats
path: root/18.0/fpm/config/reverse_proxy.config.php
diff options
context:
space:
mode:
Diffstat (limited to '18.0/fpm/config/reverse_proxy.config.php')
-rw-r--r--18.0/fpm/config/reverse_proxy.config.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/18.0/fpm/config/reverse_proxy.config.php b/18.0/fpm/config/reverse_proxy.config.php
new file mode 100644
index 00000000..26a8bff3
--- /dev/null
+++ b/18.0/fpm/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