-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
Tested on Nextcloud 31.0.4.
My setup: Nextcloud standalone in a debian machine behind a reverse proxy.
Initial situation: During an upgrade I always block incoming requests (except my admin machine) via firewall on the reverse proxy. After the update I look for the self check in /index.php/settings/admin/overview for errors and warnings. Only after resolving the issues I proceed with unblocking firewall traffic.
Nextcloud's self check makes a request to the URL configured in overwrite.cli.url (config.php) and looks for an HSTS header in the response. In my case this request ran into a timeout. Nextcloud displayed me then the error message that I found here:
| $msg .= $this->l10n->t('- The `Strict-Transport-Security` HTTP header is malformed: `%s`. For enhanced security, it is recommended to enable HSTS.', [$transportSecurityValidity]) . "\n"; |
HSTS is correctly set up on my reverse proxy. But as the Nextcloud instance could not reach the proxy it showed me this warning. I expect Nextcloud to display me an error message like "Some tests could not be performed due to a network timeout to the configured public address <address> configured in the config.php"