diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-08-26 23:58:13 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-08-27 00:05:04 +0200 |
commit | 7acdd018a1555c9bc5dcc1702074a10f862bb170 (patch) | |
tree | adbbeff4dfb9f0dca4ae27902448cde6c141c771 /config/config.sample.php | |
parent | 3115053bbb3a1ba5d0bb3562bea6b7ef94a09cd0 (diff) | |
download | nextcloud-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-x | config/config.sample.php | 6 |
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" => "", |