diff options
author | Vincent Ambo <mail@tazj.in> | 2020-06-12T01·01+0100 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2020-06-12T01·14+0000 |
commit | 37bbc431464245cef2df2dccafb722b012281a3f (patch) | |
tree | 8f6538b1126bb9fa09e591fa71d68fe4d4811fd0 /ops | |
parent | 79fdb0bb5fece3ef8b3a1363bf5e4e04edfe8e0f (diff) |
feat(camden): Move cgit to code.tvl.fyi r/916
Moves the host at which cgit is served to 'code.tvl.fyi'. Also updates related projects that link to this, most importantly: * Hound's & Gerrit's cgit link bases have been updated * besadii is updated to request CI builds for the new location Change-Id: I44e3e584010ac29cc913ebb1a197c996eb024d80 Reviewed-on: https://cl.tvl.fyi/c/depot/+/71 Reviewed-by: lukegb <lukegb@tvl.fyi>
Diffstat (limited to 'ops')
-rw-r--r-- | ops/besadii/main.go | 10 | ||||
-rw-r--r-- | ops/nixos/camden/default.nix | 17 | ||||
-rw-r--r-- | ops/nixos/modules/monorepo-gerrit.nix | 2 |
3 files changed, 19 insertions, 10 deletions
diff --git a/ops/besadii/main.go b/ops/besadii/main.go index 72bba769f5d6..b035dc0a39bc 100644 --- a/ops/besadii/main.go +++ b/ops/besadii/main.go @@ -65,7 +65,7 @@ type Manifest struct { func prepareManifest(commit string) string { m := Manifest{ Image: "nixos/latest", - Sources: []string{"https://git.tazj.in/"}, + Sources: []string{"https://code.tvl.fyi/"}, // secret for cachix/tazjin Secrets: []string{"f7f02546-4d95-44f7-a98e-d61fdded8b5b"}, @@ -74,15 +74,15 @@ func prepareManifest(commit string) string { {"setup": `# sourcehut does not censor secrets in builds, hence this hack: echo -n 'export CACHIX_SIGNING_KEY=' >> ~/.buildenv cat ~/.cachix-tazjin >> ~/.buildenv -nix-env -iA third_party.cachix -f git.tazj.in +nix-env -iA third_party.cachix -f code.tvl.fyi cachix use tazjin -cd git.tazj.in +cd code.tvl.fyi git checkout ` + commit}, - {"build": `cd git.tazj.in + {"build": `cd code.tvl.fyi nix-build ci-builds.nix > built-paths`}, - {"cache": `cd git.tazj.in + {"cache": `cd code.tvl.fyi cat built-paths | cachix push tazjin`}, }, 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"; diff --git a/ops/nixos/modules/monorepo-gerrit.nix b/ops/nixos/modules/monorepo-gerrit.nix index 48e7a28037e9..b51a6d8b294c 100644 --- a/ops/nixos/modules/monorepo-gerrit.nix +++ b/ops/nixos/modules/monorepo-gerrit.nix @@ -20,7 +20,7 @@ in { # Configure for cgit. gitweb = { type = "custom"; - url = "https://git.tazj.in"; + url = "https://code.tvl.fyi"; project = "/"; revision = "/commit/?id=\${commit}"; branch = "/log/?h=\${branch}"; |