summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-05-29 20:40:59 +0200
committerAlan Pearce2024-05-29 20:40:59 +0200
commit5c46ebc4e25d62d8b5522d65c8b950d1c0f5e6b9 (patch)
tree8234f7716130cf95f86ac25229013f4841ff26c1
parent061f93f8d52abefcf54aee61937f5fd6ee3c0733 (diff)
downloadnixfiles-5c46ebc4e25d62d8b5522d65c8b950d1c0f5e6b9.tar.lz
nixfiles-5c46ebc4e25d62d8b5522d65c8b950d1c0f5e6b9.tar.zst
nixfiles-5c46ebc4e25d62d8b5522d65c8b950d1c0f5e6b9.zip
linde: optimise serving git repos over HTTP
-rw-r--r--system/linde.nix2
1 files changed, 1 insertions, 1 deletions
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 {