From 5c46ebc4e25d62d8b5522d65c8b950d1c0f5e6b9 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 29 May 2024 20:40:59 +0200 Subject: linde: optimise serving git repos over HTTP --- system/linde.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/linde.nix b/system/linde.nix index 75abdc2d..9b175dad 100644 --- a/system/linde.nix +++ b/system/linde.nix @@ -696,7 +696,7 @@ in hide cgit.cgi } } - @git_http_backend path_regexp "^/.+/(info/refs|git-upload-pack)$" + @git_http_backend path_regexp "^.*/(HEAD|info/refs|objects/info/[^/]+|git-upload-pack)$" handle @git_http_backend { reverse_proxy ${fcgisocket} { transport fastcgi { -- cgit 1.4.1