From ec46fdf28cee34c7a1e0ced2402deffc3ae593ec Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 12 Jul 2020 14:38:10 +0100 Subject: chore(tazjin/camden): Remove cgit & gerrit deployments Change-Id: Iaf34d0d005285a367fa9730093b553d38acb8ae5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1101 Tested-by: BuildkiteCI Reviewed-by: tazjin --- users/tazjin/nixos/camden/default.nix | 57 ----------------------------------- 1 file changed, 57 deletions(-) diff --git a/users/tazjin/nixos/camden/default.nix b/users/tazjin/nixos/camden/default.nix index 437dddae2f..06536a1a7a 100644 --- a/users/tazjin/nixos/camden/default.nix +++ b/users/tazjin/nixos/camden/default.nix @@ -16,12 +16,10 @@ config: let in lib.fix(self: { imports = [ "${depot.depotPath}/ops/nixos/depot.nix" - "${depot.depotPath}/ops/nixos/monorepo-gerrit.nix" "${depot.depotPath}/ops/nixos/quassel.nix" "${depot.depotPath}/ops/nixos/smtprelay.nix" "${depot.depotPath}/ops/nixos/sourcegraph.nix" "${depot.depotPath}/ops/nixos/tvl-slapd/default.nix" - "${pkgs.nixpkgsSrc}/nixos/modules/services/web-apps/gerrit.nix" ]; depot = depot; @@ -168,18 +166,6 @@ in lib.fix(self: { # Allow sudo-ing via the forwarded SSH agent. security.pam.enableSSHAgentAuth = true; - # Run cgit for the depot. The onion here is nginx(thttpd(cgit)). - systemd.services.cgit = { - wantedBy = [ "multi-user.target" ]; - script = "${depot.web.cgit-taz}/bin/cgit-launch"; - - serviceConfig = { - Restart = "on-failure"; - User = "git"; - Group = "git"; - }; - }; - # NixOS 20.03 broke nginx and I can't be bothered to debug it # anymore, all solution attempts have failed, so here's a # brute-force fix. @@ -249,17 +235,6 @@ in lib.fix(self: { applicationCredentials = "/etc/gcp/key.json"; }; - # Start a local SMTP relay to Gmail (used by gerrit) - services.depot.smtprelay = { - enable = true; - args = { - listen = ":2525"; - remote_host = "smtp.gmail.com:587"; - remote_auth = "plain"; - remote_user = "tvlbot@tazj.in"; - }; - }; - services.depot.quassel = { enable = true; acmeHost = "quassel.tazj.in"; @@ -355,38 +330,6 @@ in lib.fix(self: { ''; }; - virtualHosts.cgit = { - serverName = "code.tvl.fyi"; - useACMEHost = "tvl.fyi"; - forceSSL = true; - - extraConfig = '' - # Static assets must always hit the root. - location ~ ^/(favicon\.ico|cgit\.(css|png))$ { - proxy_pass http://localhost:2448; - } - - # Everything else hits the depot directly. - location / { - proxy_pass http://localhost:2448/cgit.cgi/depot/; - } - ''; - }; - - virtualHosts.gerrit = { - serverName = "cl.tvl.fyi"; - useACMEHost = "tvl.fyi"; - forceSSL = true; - - extraConfig = '' - location / { - proxy_pass http://localhost:4778; - proxy_set_header X-Forwarded-For $remote_addr; - proxy_set_header Host $host; - } - ''; - }; - virtualHosts.cgit-old = nginxRedirect { from = "git.tazj.in"; to = "code.tvl.fyi"; -- cgit 1.4.1