]> WPIA git - infra.git/blobdiff - modules/gitweb/templates/nginx.epp
add: git smart HTTP daemon
[infra.git] / modules / gitweb / templates / nginx.epp
index b7db2d450e367bc9825b59b73c0005d0bf9e2fcd..219b94bbca1d8d37211940cbd15881dd369f947d 100644 (file)
@@ -16,6 +16,11 @@ server {
         alias /usr/share/gitweb/static;
     }
     location / {
-        root /srv/git;
+        fastcgi_pass unix:/git-smart-http-socket/fcgiwrap.socket;
+        fastcgi_param SCRIPT_FILENAME   /usr/lib/git-core/git-http-backend;
+        fastcgi_param PATH_INFO         $uri;
+        fastcgi_param GIT_PROJECT_ROOT  /srv/git;
+        fastcgi_param GIT_HTTP_EXPORT_ALL "";
+        include fastcgi_params;
     }
 }