summaryrefslogtreecommitdiff
path: root/roles/gitolite/http/templates/cgitrc.j2
blob: 131042d2354bfc534d2ac91828f01ad3587743d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
## {{ ansible_managed }}

css=/cgit-css/cgit.css
{% if 'logo' in item.value.http %}
logo=/logo.png
{% else %}
logo=/cgit-css/cgit.png
{% endif %}
{% if 'title' in item.value.http %}
root-title={{ item.value.http.title }}
{% endif %}
{% if 'description' in item.value.http %}
root-desc={{ item.value.http.description }}
{% endif %}

enable-blame=1
enable-commit-graph=1
enable-git-config=1
enable-index-links=1
enable-log-filecount=1
enable-log-linecount=1
enable-subject-links=1
enable-tree-linenumbers=1

virtual-root=/cgit/
source-filter=/usr/lib/cgit/filters/syntax-highlighting.py

clone-url=ssh://{{ item.value.user | default('git-' + item.key) }}@{{ item.value.http.hostnames[0] }}{% if ansible_port is defined %}:{{ ansible_port }}{% endif %}/$CGIT_REPO_URL{% if item.value.http.enable_git_backend | default(false) %} https://{{ item.value.http.hostnames[0] }}/$CGIT_REPO_URL{% endif %}

strict-export=git-daemon-export-ok
scan-path={{ gitolite_base_path }}/{{ item.key }}/repositories