set X-Robots-Tag noindex on Gitweb master
authorZack M. Davis <ultimatelyuntruethought@gmail.com>
Mon, 20 Oct 2025 00:12:17 +0000 (17:12 -0700)
committerZack M. Davis <ultimatelyuntruethought@gmail.com>
Mon, 20 Oct 2025 00:12:17 +0000 (17:12 -0700)
Thanks to Said Achmiz.

provisioning/nginx_siteconf

index b18ce5b..279df7b 100644 (file)
@@ -28,6 +28,7 @@ server {
 
         location /source {
             root /usr/share/gitweb/;
+            add_header X-Robots-Tag "noindex";
             include fastcgi_params;
             gzip off;
             fastcgi_param SCRIPT_FILENAME /usr/share/gitweb/gitweb.cgi;