Improve wrong configuration error message when we know it’s wrong.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/41438/head
Côme Chilliet 2023-11-20 15:45:46 +07:00
parent 0ebd44abb6
commit f47a2bbcae
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
1 changed files with 2 additions and 2 deletions

@ -64,8 +64,8 @@ class ForwardedForHeaders implements ISetupCheck {
}
if (empty($trustedProxies) && $this->request->getHeader('X-Forwarded-Host') !== '') {
return SetupResult::warning(
$this->l10n->t('The reverse proxy header configuration is incorrect, or you are accessing Nextcloud from a trusted proxy. If not, this is a security issue and can allow an attacker to spoof their IP address as visible to the Nextcloud.'),
return SetupResult::error(
$this->l10n->t('The reverse proxy header configuration is incorrect. This is a security issue and can allow an attacker to spoof their IP address as visible to the Nextcloud.'),
$this->urlGenerator->linkToDocs('admin-reverse-proxy')
);
}