From 9f2ebc2cce3af0e685677c23f2098c115e034adf Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Thu, 13 Aug 2026 16:35:47 +0100 Subject: move ansible/ dir to root --- roles/git/templates/nginx/cgit.conf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 roles/git/templates/nginx/cgit.conf (limited to 'roles/git/templates/nginx/cgit.conf') diff --git a/roles/git/templates/nginx/cgit.conf b/roles/git/templates/nginx/cgit.conf new file mode 100644 index 0000000..456173b --- /dev/null +++ b/roles/git/templates/nginx/cgit.conf @@ -0,0 +1,17 @@ +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; + + 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; + } +} -- cgit v1.2.3