all repos — nixfiles @ 5c46ebc4e25d62d8b5522d65c8b950d1c0f5e6b9

System and user configuration, managed by nix and home-manager

linde: optimise serving git repos over HTTP
Alan Pearce alan@alanpearce.eu
Wed, 29 May 2024 20:40:59 +0200
commit

5c46ebc4e25d62d8b5522d65c8b950d1c0f5e6b9

parent

061f93f8d52abefcf54aee61937f5fd6ee3c0733

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M system/linde.nixsystem/linde.nix
@@ -696,7 +696,7 @@ file_server  {                 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 {