diff options
author | Vincent Ambo <tazjin@google.com> | 2019-12-18T20·17+0000 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-12-18T20·20+0000 |
commit | 5894d521b9fcc0d8f9eba9cf6b08544b8770dc7e (patch) | |
tree | 4146d6a28e214c372a8df5e011a252970b60139f /services | |
parent | d6a653d7a3d67c87b086686069e91d44546862eb (diff) |
fix(cgit-taz): Clone depot via SSH r/191
Keys are provided in a Kubernetes secret.
Diffstat (limited to 'services')
-rw-r--r-- | services/cgit-taz/default.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/services/cgit-taz/default.nix b/services/cgit-taz/default.nix index 425c136ec419..6f075dc64d59 100644 --- a/services/cgit-taz/default.nix +++ b/services/cgit-taz/default.nix @@ -56,12 +56,10 @@ let in writeShellScriptBin "cgit-launch" '' ${coreutils}/bin/mkdir -p /srv/git - # The cookie file is placed in the correct location by Kubernetes, based on - # information stored in a secret. + # The SSH keys are placed in the container by Kubernetes. ${git}/bin/git clone --mirror \ - -c http.cookieFile=/var/cgit/gitcookies \ -c http.sslcainfo=${cacert}/etc/ssl/certs/ca-bundle.crt \ - https://source.developers.google.com/p/tazjins-infrastructure/r/depot \ + ssh://source.developers.google.com:2022/p/tazjins-infrastructure/r/depot \ /srv/git/depot exec ${thttpdCgit}/bin/thttpd -D -C ${thttpdConfig} |