summaryrefslogtreecommitdiff
path: root/roles/git/templates/nginx/cgit.conf
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-08-25 22:40:31 +0100
committerJoe Carstairs <me@joeac.net>2026-08-25 22:40:31 +0100
commita697431cedc9bb005f38d209c18657db4f31a596 (patch)
tree470213f17ae6161a3c7f494027ebef9448932b4f /roles/git/templates/nginx/cgit.conf
parent001a480ba1ea8327434873b59a00d8352c1a61c6 (diff)
serves git over https:// and git://
Diffstat (limited to 'roles/git/templates/nginx/cgit.conf')
-rw-r--r--roles/git/templates/nginx/cgit.conf20
1 files changed, 0 insertions, 20 deletions
diff --git a/roles/git/templates/nginx/cgit.conf b/roles/git/templates/nginx/cgit.conf
deleted file mode 100644
index 7d29608..0000000
--- a/roles/git/templates/nginx/cgit.conf
+++ /dev/null
@@ -1,20 +0,0 @@
-server {
- listen {{ services.git.port }};
- listen [::]:{{ services.git.port }};
- server_name {{ ( subdomains | selectattr('service', 'eq', 'git') | first ).full_domain }};
-
- root /usr/share/webapps/cgit;
- try_files $uri @cgit;
-
- access_log /var/log/nginx/git.joeac.net/access.log;
- error_log /var/log/nginx/git.joeac.net/error.log;
-
- location @cgit {
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME /usr/share/webapps/cgit/cgit.cgi;
- fastcgi_param PATH_INFO $uri;
- fastcgi_param QUERY_STRING $args;
- fastcgi_param HTTP_HOST $server_name;
- fastcgi_pass unix:/run/fcgiwrap/fcgiwrap.sock;
- }
-}