Closed hp4 closed 3 weeks ago
Can you provide the exact warnings and errors you're seeing? And also confirm you're using the latest Nginx config in our manual?
Nextcloud issues a standard error message on on a set of missing headers independent of what is really wrong
We check and report on each security header independently:
Nextcloud seems to export the "X-Robots-Tag" in its own code, but in the docs asks the admin to provide it by the webserver
Where do we say that?
And in the Nginx config we provide, there is handling for it (in spots we cover in standard (Apache) installations via the bundled .htaccess
). Check the modHeadersAvailable
line in the Nginx config as well as the separate header handling section for static assets as seen in manual:
https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html
Are you using the above Nginx config?
You also stated you're using NextcloudPi, but that's Apache based. So your report has some inconsistencies that are hard to follow. Your provided config suggests you're using one of our micro-services Docker images (fpm variant presumably if you're using Nginx as your web server).
Slightly related, but not a biggy either:
I have add_header
X-Robots-Tag none always;in my nginx configuration.
noneshould be an alias to
noindex, nofollow, but nextcloud still warns that I am missing
noindex, nofollow` in X-Robots-Tag
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.
⚠️ This issue respects the following points: ⚠️
Bug description
I can't get rid of error messages in Nextclouds "Security & Setup Warnings", the messages are wrong or at least misleading:
Nextcloud issues a standard error message on on a set of missing headers independent of what is really wrong
Nextcloud seems to export the "X-Robots-Tag" in its own code, but in the docs asks the admin to provide it by the webserver
this leads to a double "X-Robots-Tag" in the http-response (at least with nginx, may be apache removes double entries?) which is erroneously reported as mssing !
when not providing the "Strict-Transport-Security" Nextcloud complains about it, but after providing it Nextcloud still reports it as missing and in addition shows the above mentioned standard message about missing/wrong headers
Steps to reproduce
1.install Nextcloud Hub 8 (29.0.3) 2.configuration with nginx webservers as server and reverse proxy 3.look for the "Security & Setup Warnings" messages
Expected behavior
Installation method
Community NextcloudPi appliance
Nextcloud Server version
29
Operating system
Debian/Ubuntu
PHP engine version
None
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
No response