nixos/nextcloud: avoid duplicate X-Robots-Tag header

We already set this header in nginx, and a duplicate header can lead to
issues, like: https://github.com/nextcloud/notes-android/issues/2848
This commit is contained in:
teutat3s
2025-10-09 09:42:29 +02:00
parent 663c6b0d63
commit c794451fee
@@ -1547,6 +1547,8 @@ in
client_max_body_size ${cfg.maxUploadSize};
fastcgi_buffers 64 4K;
fastcgi_hide_header X-Powered-By;
# mirror upstream htaccess file https://github.com/nextcloud/server/blob/v32.0.0/.htaccess#L40-L41
fastcgi_hide_header X-Robots-Tag;
gzip on;
gzip_vary on;
gzip_comp_level 4;