diff options
| author | Joe Carstairs <me@joeac.net> | 2026-08-13 15:52:02 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-08-13 15:52:02 +0100 |
| commit | f9272fdf3ea23070583c944b110a7b8f16c5a4ff (patch) | |
| tree | 1f4d65ba8a2be7022f5771bffd7ad283f879b04d /ansible/roles/git/templates/nginx/cgit.conf | |
| parent | f32d030ff966fb1046d57fe8b05085ce6cd73d5e (diff) | |
adds git service
Diffstat (limited to 'ansible/roles/git/templates/nginx/cgit.conf')
| -rw-r--r-- | ansible/roles/git/templates/nginx/cgit.conf | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ansible/roles/git/templates/nginx/cgit.conf b/ansible/roles/git/templates/nginx/cgit.conf new file mode 100644 index 0000000..456173b --- /dev/null +++ b/ansible/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; + } +} |
