about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-07-28T17·08+0300
committertazjin <tazjin@tvl.su>2022-07-28T17·50+0000
commitd2176bb8fb179613cfa997a73199476ed5512071 (patch)
treedeb751bd96b2481738959abfb411ef1b1ef662c4
parentba682cd91b3f8ce04478ac3b29c3230fc3f443f5 (diff)
feat(ops/www): add predlozhnik redirect on tazj.in r/4337
otherwise posting this to reddit's /r/russian is not possible, as they
ban all links to Russian-affiliated sites

Change-Id: I8d23f0961ec7ef097fc2dbdd0aaa178861a19c10
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5992
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
-rw-r--r--ops/modules/www/tazj.in.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/ops/modules/www/tazj.in.nix b/ops/modules/www/tazj.in.nix
index a53ef904f5..3b80222e0d 100644
--- a/ops/modules/www/tazj.in.nix
+++ b/ops/modules/www/tazj.in.nix
@@ -29,6 +29,10 @@
           try_files $uri $uri.html $uri/ =404;
         }
 
+        location = /predlozhnik {
+          return 302 https://predlozhnik.ru;
+        }
+
         # Temporary place for serving static files.
         location /blobs/ {
           alias /var/lib/tazjins-blobs/;