From 96c79731cf395e1bb1af833f81d11dd147b6f92e Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 1 Sep 2019 00:20:06 +0200 Subject: [PATCH] fastcgit --- docs/personal/server/dispatch.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/personal/server/dispatch.rst b/docs/personal/server/dispatch.rst index db13f23..2f3fa5f 100644 --- a/docs/personal/server/dispatch.rst +++ b/docs/personal/server/dispatch.rst @@ -556,9 +556,19 @@ Sites server { include rwx.work.conf; server_name git.rwx.work; + location ~ ^.*/(info/refs|git-upload-pack)$ { + fastcgi_pass unix:/run/fcgiwrap.socket; + fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend; + fastcgi_param PATH_INFO ${uri}; + fastcgi_param GIT_PROJECT_ROOT /d/projects/rwx.work; + fastcgi_param GIT_HTTP_EXPORT_ALL ""; + include fastcgi_params; + } + location / { root /d/projects/rwx.work; fancyindex on; } + } server { include rwx.work.conf;