summaryrefslogtreecommitdiffstats
path: root/config/config.sample.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-08-26 23:58:13 +0200
committerLukas Reschke <lukas@owncloud.com>2014-08-27 00:05:04 +0200
commit7acdd018a1555c9bc5dcc1702074a10f862bb170 (patch)
treeadbbeff4dfb9f0dca4ae27902448cde6c141c771 /config/config.sample.php
parent3115053bbb3a1ba5d0bb3562bea6b7ef94a09cd0 (diff)
downloadnextcloud-server-7acdd018a1555c9bc5dcc1702074a10f862bb170.tar.gz
nextcloud-server-7acdd018a1555c9bc5dcc1702074a10f862bb170.zip
Add support for getting the real client IP behind proxies
Fixes https://github.com/owncloud/core/issues/10624 Fix copy paste fail Add unittest for comma separated headers Revert 3rdparty
Diffstat (limited to 'config/config.sample.php')
-rwxr-xr-xconfig/config.sample.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index 96565556910..d232e18ab08 100755
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -62,6 +62,12 @@ $CONFIG = array(
/* List of trusted domains, to prevent host header poisoning ownCloud is only using these Host headers */
'trusted_domains' => array('demo.owncloud.org', 'otherdomain.owncloud.org:8080'),
+/* List of trusted proxy servers */
+'trusted_proxies' => array('203.0.113.45', '198.51.100.128'),
+
+/* Headers that should be trusted as client IP address in combination with `trusted_proxies` */
+'forwarded_for_headers' => array('HTTP_X_FORWARDED', 'HTTP_FORWARDED_FOR'),
+
/* Theme to use for ownCloud */
"theme" => "",