about summary refs log tree commit diff
path: root/ops/nixos/www/cs.tvl.fyi.nix
diff options
context:
space:
mode:
Diffstat (limited to 'ops/nixos/www/cs.tvl.fyi.nix')
-rw-r--r--ops/nixos/www/cs.tvl.fyi.nix30
1 files changed, 0 insertions, 30 deletions
diff --git a/ops/nixos/www/cs.tvl.fyi.nix b/ops/nixos/www/cs.tvl.fyi.nix
deleted file mode 100644
index ed2adcbf82..0000000000
--- a/ops/nixos/www/cs.tvl.fyi.nix
+++ /dev/null
@@ -1,30 +0,0 @@
-{ config, ... }:
-
-{
-  imports = [
-    ./base.nix
-  ];
-
-  config = {
-    services.nginx.virtualHosts."cs.tvl.fyi" = {
-      serverName = "cs.tvl.fyi";
-      enableACME = true;
-      forceSSL = true;
-
-      extraConfig = ''
-        location = / {
-          return 301 https://cs.tvl.fyi/depot;
-        }
-
-        location / {
-          proxy_set_header X-Sg-Auth "Anonymous";
-          proxy_pass http://localhost:${toString config.services.depot.sourcegraph.port};
-        }
-
-        location /users/Anonymous/settings {
-          return 301 https://cs.tvl.fyi;
-        }
-      '';
-    };
-  };
-}