diff options
| author | Joe Carstairs <me@joeac.net> | 2026-08-13 16:35:47 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-08-13 16:35:47 +0100 |
| commit | 9f2ebc2cce3af0e685677c23f2098c115e034adf (patch) | |
| tree | bc6609cf851ee3f0a4f572d762b4ea35a34610f6 /roles/git/templates | |
| parent | f31e65c51681823ade14abad87c742101a1b823d (diff) | |
move ansible/ dir to root
Diffstat (limited to 'roles/git/templates')
| -rw-r--r-- | roles/git/templates/conf.d/fcgiwrap | 3 | ||||
| -rw-r--r-- | roles/git/templates/conf.d/git-daemon | 3 | ||||
| -rw-r--r-- | roles/git/templates/nginx/cgit.conf | 17 |
3 files changed, 23 insertions, 0 deletions
diff --git a/roles/git/templates/conf.d/fcgiwrap b/roles/git/templates/conf.d/fcgiwrap new file mode 100644 index 0000000..65a40e8 --- /dev/null +++ b/roles/git/templates/conf.d/fcgiwrap @@ -0,0 +1,3 @@ +socket=unix:{{ fcgiwrap_socket }} +user={{ fcgiwrap_user }} +group={{ fcgiwrap_group }} diff --git a/roles/git/templates/conf.d/git-daemon b/roles/git/templates/conf.d/git-daemon new file mode 100644 index 0000000..c50b66b --- /dev/null +++ b/roles/git/templates/conf.d/git-daemon @@ -0,0 +1,3 @@ +GITDAEMON_OPTS="--syslog --base-path=/srv/git" +GIT_USER="gitd" +GIT_GROUP="git" 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; + } +} |
