From c794451fee1d3a412d5cfe1437b9313134ef5186 Mon Sep 17 00:00:00 2001 From: teutat3s <10206665+teutat3s@users.noreply.github.com> Date: Thu, 9 Oct 2025 09:42:29 +0200 Subject: [PATCH] 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 --- nixos/modules/services/web-apps/nextcloud.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index cafa64b29e7a..04ec29832198 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -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;