diff options
Diffstat (limited to 'ops/modules/www')
-rw-r--r-- | ops/modules/www/code.tvl.fyi.nix | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/ops/modules/www/code.tvl.fyi.nix b/ops/modules/www/code.tvl.fyi.nix index efb4b6a8f5a2..e565b03b1187 100644 --- a/ops/modules/www/code.tvl.fyi.nix +++ b/ops/modules/www/code.tvl.fyi.nix @@ -20,6 +20,10 @@ alias ${depot.tvix.docs.svg}/component-flow.svg; } + location = /go-get/tvix/build-go { + alias ${pkgs.writeText "go-import-metadata.html" ''<html><meta name="go-import" content="code.tvl.fyi/tvix/build-go git https://code.tvl.fyi/depot.git:/tvix/build-go.git"></html>''}; + } + location = /go-get/tvix/castore-go { alias ${pkgs.writeText "go-import-metadata.html" ''<html><meta name="go-import" content="code.tvl.fyi/tvix/castore-go git https://code.tvl.fyi/depot.git:/tvix/castore-go.git"></html>''}; } @@ -32,9 +36,9 @@ 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 { + location = /tvix/build-go { if ($args ~* "/?go-get=1") { - return 302 /go-get/tvix/nar-bridge; + return 302 /go-get/tvix/build-go; } } @@ -50,6 +54,12 @@ } } + location = /tvix/nar-bridge { + if ($args ~* "/?go-get=1") { + return 302 /go-get/tvix/nar-bridge; + } + } + # Git operations on depot.git hit josh location /depot.git { proxy_pass http://127.0.0.1:${toString config.services.depot.josh.port}; |