Der "Strict-Transport-Security" HTTP-Header ist nicht auf mindestens "15768000" Sekunden eingestellt. Um die Sicherheit zu erhöhen, empehlen wir das Aktivieren von HSTS, wie es in den Sicherheitshinweisen erläutert ist.
Usually I added this code: Header set Strict-Transport-Security "max-age=15768000" env=HTTPS into the /var/www/owncloud/.htaccess but this isn’t working.
To use HSTS with NGINX, you should add the following line to your server block: add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
You can also have a look at the documentation for config files to use with NGINX.
This is a solution for Synology DIscstations but I think it also works on other environments in some way.
For non-German speakers, here is a trnslation:
Log in at you DS via SSH
Get root access “sudo su -” (without " ") using the admin password
Create a new file in /etc/nginx/conf.d named “http.*.conf” (replace the * with something else), if you only want “hsts” the name could be “http.hsts.conf” (e.g. command “nano /etc/nginx/conf.d/http.hsts.conf”)
Please don’t mix topics! The OP was using an nginx webserver and his problem was solved. Don’t come up with a different setup here, open a new topic for that. Closing this thread.