tvl-depot/ops/modules/www
Florian Klink 9786255267 feat(ops/modules/code.tvl.fyi): fix go get for tvix store protos
There's a go.mod in in tvix/store/protos, which sets the module path to
code.tvl.fyi/tvix/store/protos.

While this path makes kinda sense, it's currently not possible to `go
get` it from that location, as we serve the cgit interface from there.

Fortunately, `go get` has a mechanism to determine clone URLs for a
given go module path, as documented in https://go.dev/ref/mod#vcs-find.

We simply need to serve a small HTML file at that path, describing the
proper clone URL.

This points the clone URL for code.tvl.fyi/tvix/store/protos to a josh-
provided subtree of just :/tvix/store/protos, which will contain the
root go.mod file.

We need another layer of indirection as nginx can't have an `alias`
directive inside a conditional block (but can have a redirect).

Contrary to https://b.tvl.fyi/issues/299#comment-464, it seems to work
for our usecase. It might become a problem if we actually serve `go.mod`
files in a nested fashion at some point, but let's look at that once we
get there.

Fixes b/299.

Change-Id: Idcad795105af5d57e6d06de6e232881dccf9110b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9290
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: adisbladis <adisbladis@gmail.com>
Reviewed-by: tazjin <tazjin@tvl.su>
2023-09-10 11:43:29 +00:00
..
atward.tvl.fyi.nix fix(ops/www): Fix typo in nginx configuration 2021-05-05 09:48:49 +00:00
auth.tvl.fyi.nix fix(ops/www): increase buffer memory size for auth.tvl.fyi 2023-02-01 09:30:24 +00:00
b.tvl.fyi.nix refactor(ops): Split //ops/nixos into different locations 2021-04-11 22:18:22 +00:00
base.nix chore(ops/modules): Remove fix-nginx timer unit 2022-02-20 14:26:57 +00:00
cache.tvl.su.nix chore(cache.tvl.su): Raise cache priority to 50 2022-01-07 01:30:00 +00:00
cl.tvl.fyi.nix fix(ops/www): allow all indexing on cl.tvl.fyi 2023-03-29 12:17:56 +00:00
code.tvl.fyi.nix feat(ops/modules/code.tvl.fyi): fix go get for tvix store protos 2023-09-10 11:43:29 +00:00
cs.tvl.fyi.nix refactor(ops): Split //ops/nixos into different locations 2021-04-11 22:18:22 +00:00
deploys.tvl.fyi.nix refactor(whitby): Move restic path configuration into modules 2021-09-18 15:10:34 +00:00
images.tvl.fyi.nix feat(ops/www): Point images.tvl.* at Nixery 2021-08-13 10:57:53 +00:00
inbox.tvl.su.nix feat(web/inbox): add landing page for inbox.tvl.su 2022-12-28 08:17:45 +00:00
nixery.dev.nix feat(ops): Serve nixery.dev from whitby 2021-08-24 11:30:16 +00:00
self-redirect.nix fix(ops/modules/www): Make self-redirect to config a generic module 2022-02-18 11:39:01 +00:00
signup.tvl.fyi.nix feat(ops/modules): deploy //web/pwcrypt to signup.tvl.fyi 2023-09-05 14:44:36 +00:00
static.tvl.fyi.nix feat(whitby): serve static.tvl.{fyi|su} with max cache settings 2021-10-01 20:45:50 +00:00
status.tvl.su.nix fix(ops/machines/whitby): serve grafana at status.tvl.su again 2022-11-07 14:43:18 +00:00
tazj.in.nix feat(ops/www): add predlozhnik redirect on tazj.in 2022-07-28 17:50:18 +00:00
todo.tvl.fyi.nix refactor(ops): Split //ops/nixos into different locations 2021-04-11 22:18:22 +00:00
tvix.dev.nix feat(ops): serve Tvix website & docs on (docs.)tvix.dev 2023-03-14 22:10:40 +00:00
tvixbolt.tvl.su.nix feat(ops/modules): deploy tvixbolt to tvixbolt.tvl.su 2022-09-13 11:05:54 +00:00
tvl.fyi.nix fix(www/tvl.fyi): Anchor /blog redirects at #blog 2022-01-29 22:37:55 +00:00
tvl.su.nix feat(whitby): Serve //corp/website on tvl.su 2021-10-01 15:24:35 +00:00
wigglydonke.rs.nix fix(wigglydonke.rs): Don't rebuild nginx config unnecessarily 2021-05-25 17:10:50 +00:00