From e2ee37f71a5059578605c77bdd0d8bad71049c5a Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sun, 21 Jan 2024 18:14:36 +0000 Subject: Add role for git server The Git server role should support: * git ssh protocol, * git protocol, * git smart http protocol. Support for cgit will come as a separate role. --- roles/cgit/files/cgit.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 roles/cgit/files/cgit.conf (limited to 'roles/cgit') diff --git a/roles/cgit/files/cgit.conf b/roles/cgit/files/cgit.conf new file mode 100644 index 0000000..5d7eef8 --- /dev/null +++ b/roles/cgit/files/cgit.conf @@ -0,0 +1,15 @@ +# Source: https://wiki.archlinux.org/title/cgit + +root /usr/share/cgit/; +try_files $uri @cgit; + +location @cgit { + include fastcgi_params; + + fastcgi_param SCRIPT_FILENAME /var/www/cgi-bin/cgit; + fastcgi_param PATH_INFO $uri; + fastcgi_param QUERY_STRING $args; + fastcgi_param HTTP_HOST $server_name; + + fastcgi_pass unix:/run/fcgiwrap.sock; +} -- cgit v1.2.3-70-g09d2