about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-03-29T12·12+0300
committerclbot <clbot@tvl.fyi>2023-03-29T12·17+0000
commit73c12f7c4f0b6cef27d1a9052c85975f5a978b04 (patch)
tree3c2ff7a6e7d26ef4213f42c65f0a6f5ae485b72e
parentbf88421dc795e10af494110e5faa0648b343d140 (diff)
fix(ops/www): allow all indexing on cl.tvl.fyi r/6054
I *want* search engines to index our CLs, they might be useful!

Change-Id: I956d92c80d812e1aefefb6daeba77a1588055b94
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8361
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: flokli <flokli@flokli.de>
-rw-r--r--ops/modules/www/cl.tvl.fyi.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/ops/modules/www/cl.tvl.fyi.nix b/ops/modules/www/cl.tvl.fyi.nix
index 470122c395..36422a6c4e 100644
--- a/ops/modules/www/cl.tvl.fyi.nix
+++ b/ops/modules/www/cl.tvl.fyi.nix
@@ -24,6 +24,10 @@
           # The :443 suffix is a workaround for https://b.tvl.fyi/issues/88.
           proxy_set_header  Host $host:443;
         }
+
+        location = /robots.txt {
+          return 200 'User-agent: *\nAllow: /';
+        }
       '';
     };
   };