diff --git a/ops/modules/www/code.tvl.fyi.nix b/ops/modules/www/code.tvl.fyi.nix index 3f34a9422..5a7a9193a 100644 --- a/ops/modules/www/code.tvl.fyi.nix +++ b/ops/modules/www/code.tvl.fyi.nix @@ -1,4 +1,4 @@ -{ depot, config, ... }: +{ depot, pkgs, config, ... }: { imports = [ @@ -20,6 +20,16 @@ alias ${depot.tvix.docs.svg}/component-flow.svg; } + location = /go-get/tvix/store/protos { + alias ${pkgs.writeText "go-import-metadata.html" ''''}; + } + + location = /tvix/store/protos { + if ($args ~* "/?go-get=1") { + return 302 /go-get/tvix/store/protos; + } + } + # Git operations on depot.git hit josh location /depot.git { proxy_pass http://localhost:${toString config.services.depot.josh.port};