diff options
Diffstat (limited to 'ansible/roles/git/templates')
| -rw-r--r-- | ansible/roles/git/templates/conf.d/fcgiwrap | 3 | ||||
| -rw-r--r-- | ansible/roles/git/templates/conf.d/git-daemon | 3 | ||||
| -rw-r--r-- | ansible/roles/git/templates/nginx/cgit.conf | 17 |
3 files changed, 23 insertions, 0 deletions
diff --git a/ansible/roles/git/templates/conf.d/fcgiwrap b/ansible/roles/git/templates/conf.d/fcgiwrap new file mode 100644 index 0000000..65a40e8 --- /dev/null +++ b/ansible/roles/git/templates/conf.d/fcgiwrap @@ -0,0 +1,3 @@ +socket=unix:{{ fcgiwrap_socket }} +user={{ fcgiwrap_user }} +group={{ fcgiwrap_group }} diff --git a/ansible/roles/git/templates/conf.d/git-daemon b/ansible/roles/git/templates/conf.d/git-daemon new file mode 100644 index 0000000..c50b66b --- /dev/null +++ b/ansible/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/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; + } +} |
