This commit is contained in:
Marc Beninca 2019-09-01 00:20:06 +02:00
parent fd585e1558
commit 96c79731cf

View file

@ -556,9 +556,19 @@ Sites
server { server {
include rwx.work.conf; include rwx.work.conf;
server_name git.rwx.work; 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; root /d/projects/rwx.work;
fancyindex on; fancyindex on;
} }
}
server { server {
include rwx.work.conf; include rwx.work.conf;