about summary refs log tree commit diff
path: root/ops/modules/www
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 /ops/modules/www
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>
Diffstat (limited to 'ops/modules/www')
-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 470122c395ea..36422a6c4e38 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: /';
+        }
       '';
     };
   };