summaryrefslogtreecommitdiff
path: root/cgit/nginx/pages/cgit.conf
diff options
context:
space:
mode:
Diffstat (limited to 'cgit/nginx/pages/cgit.conf')
-rw-r--r--cgit/nginx/pages/cgit.conf10
1 files changed, 10 insertions, 0 deletions
diff --git a/cgit/nginx/pages/cgit.conf b/cgit/nginx/pages/cgit.conf
new file mode 100644
index 0000000..9d3f7ef
--- /dev/null
+++ b/cgit/nginx/pages/cgit.conf
@@ -0,0 +1,10 @@
+root /usr/share/cgit ;
+location /git
+{
+ include fastcgi_params;
+ fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi;
+ fastcgi_pass unix:/run/fcgiwrap.socket;
+ fastcgi_param PATH_INFO $fastcgi_path_info;
+ fastcgi_param QUERY_STRING $args;
+ fastcgi_split_path_info ^(/git/?)(.+)$;
+}