From d76f1eb10b6b280c2b52b947fa7b915b168bf593 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 12 Jul 2020 13:38:54 +0100 Subject: chore(tazjin/camden): Remove Sourcegraph & TVL website deployments These are now on whitby. Change-Id: I25b1cdedf4ce9cdb377a40edbbbce123938b6828 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1068 Tested-by: BuildkiteCI Reviewed-by: tazjin --- users/tazjin/nixos/camden/default.nix | 45 ----------------------------------- 1 file changed, 45 deletions(-) diff --git a/users/tazjin/nixos/camden/default.nix b/users/tazjin/nixos/camden/default.nix index f48bb98c80..437dddae2f 100644 --- a/users/tazjin/nixos/camden/default.nix +++ b/users/tazjin/nixos/camden/default.nix @@ -249,9 +249,6 @@ in lib.fix(self: { applicationCredentials = "/etc/gcp/key.json"; }; - # Run a SourceGraph code search instance - services.depot.sourcegraph.enable = true; - # Start a local SMTP relay to Gmail (used by gerrit) services.depot.smtprelay = { enable = true; @@ -358,27 +355,6 @@ in lib.fix(self: { ''; }; - virtualHosts.tvl = { - serverName = "tvl.fyi"; - useACMEHost = "tvl.fyi"; - root = depot.web.tvl; - forceSSL = true; - - extraConfig = '' - add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; - - rewrite ^/builds/?$ https://buildkite.com/tvl/depot/ last; - - rewrite ^/monorepo-doc/?$ https://docs.google.com/document/d/1nnyByXcH0F6GOmEezNOUa2RFelpeRpDToBLYD_CtjWE/edit?usp=sharing last; - - rewrite ^/irc/?$ ircs://chat.freenode.net:6697/##tvl last; - - location ~* \.(webp|woff2)$ { - add_header Cache-Control "public, max-age=31536000"; - } - ''; - }; - virtualHosts.cgit = { serverName = "code.tvl.fyi"; useACMEHost = "tvl.fyi"; @@ -397,27 +373,6 @@ in lib.fix(self: { ''; }; - virtualHosts.sourcegraph = { - serverName = "cs.tvl.fyi"; - useACMEHost = "tvl.fyi"; - forceSSL = true; - - extraConfig = '' - location = / { - return 301 https://cs.tvl.fyi/depot; - } - - location / { - proxy_set_header X-Sg-Auth "Anonymous"; - proxy_pass http://localhost:3463; - } - - location /users/Anonymous/settings { - return 301 https://cs.tvl.fyi; - } - ''; - }; - virtualHosts.gerrit = { serverName = "cl.tvl.fyi"; useACMEHost = "tvl.fyi"; -- cgit 1.4.1