From 4797a3fd8ac644d6550d65a521a3243f38f779d6 Mon Sep 17 00:00:00 2001 From: Brian McGee Date: Mon, 9 Oct 2023 12:31:21 +0100 Subject: chore(ops): expose nar-bridge for go get Change-Id: I9d8f444ed625502cfaeea83e0b330f52dac24118 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9589 Reviewed-by: flokli Tested-by: BuildkiteCI --- ops/modules/www/code.tvl.fyi.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ops') diff --git a/ops/modules/www/code.tvl.fyi.nix b/ops/modules/www/code.tvl.fyi.nix index bef7f3f94d..7f0479908b 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" ''''}; } + location = /go-get/tvix/nar-bridge { + alias ${pkgs.writeText "go-import-metadata.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; -- cgit 1.4.1