about summary refs log tree commit diff
path: root/ops/nixos/camden/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'ops/nixos/camden/default.nix')
-rw-r--r--ops/nixos/camden/default.nix17
1 files changed, 13 insertions, 4 deletions
diff --git a/ops/nixos/camden/default.nix b/ops/nixos/camden/default.nix
index b0023be8fadf..0eabd372858f 100644
--- a/ops/nixos/camden/default.nix
+++ b/ops/nixos/camden/default.nix
@@ -256,7 +256,7 @@ in lib.fix(self: {
       url = "file:///var/lib/gerrit/git/depot.git";
       vcs = "git";
       url-pattern = {
-        base-url = "https://git.tazj.in/tree/{path}{anchor}";
+        base-url = "https://code.tvl.fyi/tree/{path}{anchor}";
         anchor = "#n{line}";
       };
     };
@@ -373,9 +373,8 @@ in lib.fix(self: {
     };
 
     virtualHosts.cgit = {
-      serverName = "git.tazj.in";
-      serverAliases = [ "git.camden.tazj.in" ];
-      useACMEHost = "tazj.in";
+      serverName = "code.tvl.fyi";
+      useACMEHost = "tvl.fyi";
       addSSL = true;
 
       extraConfig = ''
@@ -391,6 +390,16 @@ in lib.fix(self: {
       '';
     };
 
+    virtualHosts.cgit-old = {
+      serverName = "git.tazj.in";
+      useACMEHost = "tazj.in";
+      addSSL = true;
+
+      extraConfig = ''
+        return 301 https://code.tvl.fyi$request_uri;
+      '';
+    };
+
     virtualHosts.hound = {
       serverName = "cs.tazj.in";
       useACMEHost = "tazj.in";