diff options
author | Vincent Ambo <mail@tazj.in> | 2020-07-11T00·13+0100 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2020-07-11T01·00+0000 |
commit | b53d25ab3f46a947bdcb11a0790fc08110da8cd8 (patch) | |
tree | e65adb4bee0e3689f1976c22f6fe038faee0b89a /ops | |
parent | 5de644a5972613f9600585ce152a49076370d2c2 (diff) |
fix(monorepo-gerrit): Use Google's CDN to serve static assets r/1255
Change-Id: Ib4ffc1d9b030a5982b9063c1d6322fb87ba7f910 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1022 Tested-by: BuildkiteCI Reviewed-by: lukegb <lukegb@tvl.fyi>
Diffstat (limited to 'ops')
-rw-r--r-- | ops/nixos/monorepo-gerrit.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ops/nixos/monorepo-gerrit.nix b/ops/nixos/monorepo-gerrit.nix index 1595f5834605..d25e51767ef4 100644 --- a/ops/nixos/monorepo-gerrit.nix +++ b/ops/nixos/monorepo-gerrit.nix @@ -35,8 +35,15 @@ in { # Configures gerrit for being reverse-proxied by nginx as per # https://gerrit-review.googlesource.com/Documentation/config-reverseproxy.html - gerrit.canonicalWebUrl = "https://cl.tvl.fyi"; - gerrit.docUrl = "/Documentation"; + gerrit = { + canonicalWebUrl = "https://cl.tvl.fyi"; + docUrl = "/Documentation"; + + # This needs to be kept in lockstep with the Polygerrit UI + # version we use. + cdnPath = "https://cdn.googlesource.com/polygerrit_ui/768.0"; + }; + httpd.listenUrl = "proxy-https://${cfg.listenAddress}"; download.command = [ |