diff options
author | Brian McGee <brian@bmcgee.ie> | 2023-10-09T11·31+0100 |
---|---|---|
committer | Brian McGee <brian@bmcgee.ie> | 2023-10-09T12·07+0000 |
commit | 4797a3fd8ac644d6550d65a521a3243f38f779d6 (patch) | |
tree | ff4d8fd61ba661bdbe9548effd30a537bd16cfb0 /ops/modules/www/code.tvl.fyi.nix | |
parent | 47bc5bb4bc10b31294bce2ea37bcebaff3002f07 (diff) |
chore(ops): expose nar-bridge for go get r/6748
Change-Id: I9d8f444ed625502cfaeea83e0b330f52dac24118 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9589 Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
Diffstat (limited to 'ops/modules/www/code.tvl.fyi.nix')
-rw-r--r-- | ops/modules/www/code.tvl.fyi.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ops/modules/www/code.tvl.fyi.nix b/ops/modules/www/code.tvl.fyi.nix index bef7f3f94d70..7f0479908b06 100644 --- a/ops/modules/www/code.tvl.fyi.nix +++ b/ops/modules/www/code.tvl.fyi.nix @@ -28,6 +28,16 @@ alias ${pkgs.writeText "go-import-metadata.html" ''<html><meta name="go-import" content="code.tvl.fyi/tvix/store/protos git https://code.tvl.fyi/depot.git:/tvix/store/protos.git"></html>''}; } + location = /go-get/tvix/nar-bridge { + alias ${pkgs.writeText "go-import-metadata.html" ''<html><meta name="go-import" content="code.tvl.fyi/tvix/nar-bridge git https://code.tvl.fyi/depot.git:/tvix/nar-bridge.git"></html>''}; + } + + location = /tvix/nar-bridge { + if ($args ~* "/?go-get=1") { + return 302 /go-get/tvix/nar-bridge; + } + } + location = /tvix/castore/protos { if ($args ~* "/?go-get=1") { return 302 /go-get/tvix/castore/protos; |