After upgrading from Nextcloud 29 to Nextcloud 30, I’ve realised that I’m now getting the HTTP Strict Transport alert, even if I wasn’t getting it before and everything seems to working fine.
Which one are you getting precisely? There are at least three variations.
Also, what is your installation method? And where did the curl get ran from?
The checks have been evolving throughout the 28-30 development cycles. They’re now all server-side and thus more dependent on the URLs specified in your trusted_domains and overwrite.cli.url config values.
Some headers are not set correctly on your instance - The Strict-Transport-Security HTTP header is not set (should be at least 15552000 seconds). For enhanced security, it is recommended to enable HSTS. For more details see the documentation .
The original Nexcloud installation was done manually (I think it was version 27 to start with), but I’ve been upgrading it using the funtionality under Administration Settings since.
curl was run from another computer and not from the server itself.
trusted_domains is setup correcly, but…
overwrite.cli.url’ => ‘http://localhost/nextcloud’
I changed that to match the actual domain Nextcloud runs on and the alert has disappeared.
As said, it was still working fine, but I couldn’t understand why I was getting an alert that I wasn’t getting before. As you said, something must have changed in the checks and that had become an issue.