about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-12-25T17·15+0300
committerclbot <clbot@tvl.fyi>2022-12-29T20·11+0000
commitd62c7ddfda68f31857a8c8c6cc02a30b3743a4c4 (patch)
tree3bb5f6a5fcaa31d4a460ac0fb980865335274740
parent45fa75c0cd48d1fc6048af182cc2e9b91cbf918c (diff)
feat(ops/modules): enable mail address obfuscation in public web UI r/5547
Change-Id: I47b5313bee84893d405f86aefb3682cda3cfc6d7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7637
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
-rw-r--r--ops/modules/depot-inbox.nix14
1 files changed, 11 insertions, 3 deletions
diff --git a/ops/modules/depot-inbox.nix b/ops/modules/depot-inbox.nix
index f6a7089f216d..6110e47250cc 100644
--- a/ops/modules/depot-inbox.nix
+++ b/ops/modules/depot-inbox.nix
@@ -101,9 +101,17 @@ in
         cgitUrl = "https://code.tvl.fyi";
       };
 
-      settings.publicinbox.wwwlisting = "all";
-      settings.publicinbox.nntpserver = [ "inbox.tvl.su" ];
-      settings.publicinbox.imapserver = "inbox.tvl.su";
+      settings.publicinbox = {
+        wwwlisting = "all";
+        nntpserver = [ "inbox.tvl.su" ];
+        imapserver = "inbox.tvl.su";
+
+        depot.obfuscate = true;
+        noObfuscate = [
+          "tvl.su"
+          "tvl.fyi"
+        ];
+      };
     };
 
     networking.firewall.allowedTCPPorts = [