From 470bd1f4419ce47946b9018ffe78fa4c82566773 Mon Sep 17 00:00:00 2001 From: matrss Date: Wed, 2 Oct 2024 14:51:58 +0000 Subject: [PATCH] --- doc/todo/p2phttp__58___listen_on_unix_domain_sockets.mdwn | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 doc/todo/p2phttp__58___listen_on_unix_domain_sockets.mdwn diff --git a/doc/todo/p2phttp__58___listen_on_unix_domain_sockets.mdwn b/doc/todo/p2phttp__58___listen_on_unix_domain_sockets.mdwn new file mode 100644 index 0000000000..d61a8a5402 --- /dev/null +++ b/doc/todo/p2phttp__58___listen_on_unix_domain_sockets.mdwn @@ -0,0 +1,3 @@ +For p2phttp support in forgejo-aneksajo I decided to just spawn a `git annex p2phttp --wideopen` server, do authentication on the Forgejo side, and then proxy requests to p2phttp. Since p2phttp only supports serving one repository at the moment this means that I have to allocate one free port per repository. Actually finding a free port adds complexity and a race condition, as there also seems to be no way to set `--port 0` for p2phttp and then figure out which port it bound to. + +This would be simplified if p2phttp could listen on unix domain sockets instead.