diff options
author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2015-07-25 19:18:32 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-10 23:28:16 +0100 |
commit | 2579999373e628c1d6d4d08d1d89412f1fd68fe3 (patch) | |
tree | 3baf6873ad32a70ebd572862eb890be5d3fb65d3 /core/js/setupchecks.js | |
parent | 8944af57cbd1fd2962b6adeaed76c6cd41712453 (diff) | |
download | nextcloud-server-2579999373e628c1d6d4d08d1d89412f1fd68fe3.tar.gz nextcloud-server-2579999373e628c1d6d4d08d1d89412f1fd68fe3.zip |
Add setup check for reverse proxy header configuration
Diffstat (limited to 'core/js/setupchecks.js')
-rw-r--r-- | core/js/setupchecks.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js index 5a5c12c85e6..fd192e6563b 100644 --- a/core/js/setupchecks.js +++ b/core/js/setupchecks.js @@ -77,6 +77,11 @@ t('core', 'Your PHP version ({version}) is no longer <a href="{phpLink}">supported by PHP</a>. We encourage you to upgrade your PHP version to take advantage of performance and security updates provided by PHP.', {version: data.phpSupported.version, phpLink: 'https://secure.php.net/supported-versions.php'}) ); } + if(!data.forwardedForHeadersWorking) { + messages.push( + t('core', 'The reverse proxy headers configuration is incorrect, or you are accessing ownCloud from a trusted proxy. If you are not accessing ownCloud from a trusted proxy, this is a security issue and can allow an attacker to spoof their IP address as visible to ownCloud. Further information can be found in our <a href="{docLink}">documentation</a>.', {docLink: data.reverseProxyDocs}) + ); + } } else { messages.push(t('core', 'Error occurred while checking server setup')); } |