diff options
Diffstat (limited to 'clarkzjw.cc/config/bia/ansible/roles/cgit/templates/cgitrc.j2')
-rw-r--r-- | clarkzjw.cc/config/bia/ansible/roles/cgit/templates/cgitrc.j2 | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/clarkzjw.cc/config/bia/ansible/roles/cgit/templates/cgitrc.j2 b/clarkzjw.cc/config/bia/ansible/roles/cgit/templates/cgitrc.j2 new file mode 100644 index 0000000..39585fd --- /dev/null +++ b/clarkzjw.cc/config/bia/ansible/roles/cgit/templates/cgitrc.j2 | |||
@@ -0,0 +1,79 @@ | |||
1 | ## style-sheet and custom logo | ||
2 | css=/cgit.css | ||
3 | logo=/cgit.png | ||
4 | |||
5 | ## root for all cgit links | ||
6 | virtual-root=/ | ||
7 | |||
8 | ## root config | ||
9 | root-title={{ lookup('env', 'CGIT_DOMAIN') }} | ||
10 | root-desc=clarkzjw's personal git server | ||
11 | root-readme=/var/www/{{ lookup('env', 'CGIT_DOMAIN') }}/index.html | ||
12 | |||
13 | ## syntax highlighting | ||
14 | source-filter=/usr/local/lib/cgit/filters/syntax-highlighting.py | ||
15 | about-filter=/usr/local/lib/cgit/filters/about-formatting.sh | ||
16 | |||
17 | ## mimetype | ||
18 | mimetype.gif=image/gif | ||
19 | mimetype.html=text/html | ||
20 | mimetype.jpg=image/jpeg | ||
21 | mimetype.jpeg=image/jpeg | ||
22 | mimetype.bmp=image/bmp | ||
23 | mimetype.pdf=application/pdf | ||
24 | mimetype.png=image/png | ||
25 | mimetype.svg=image/svg+xml | ||
26 | |||
27 | ## features | ||
28 | remove-suffix=1 | ||
29 | enable-remote-branches=1 | ||
30 | enable-index-links=1 | ||
31 | enable-index-owner=0 | ||
32 | enable-git-config=1 | ||
33 | enable-commit-graph=1 | ||
34 | enable-log-filecount=1 | ||
35 | enable-log-linecount=1 | ||
36 | |||
37 | ## readme | ||
38 | readme=:README.md | ||
39 | readme=:readme.md | ||
40 | readme=:README.mkd | ||
41 | readme=:readme.mkd | ||
42 | readme=:README.rst | ||
43 | readme=:readme.rst | ||
44 | readme=:README.html | ||
45 | readme=:readme.html | ||
46 | readme=:README.htm | ||
47 | readme=:readme.htm | ||
48 | readme=:README.txt | ||
49 | readme=:readme.txt | ||
50 | readme=:README | ||
51 | readme=:readme | ||
52 | readme=:INSTALL.md | ||
53 | readme=:install.md | ||
54 | readme=:INSTALL.mkd | ||
55 | readme=:install.mkd | ||
56 | readme=:INSTALL.rst | ||
57 | readme=:install.rst | ||
58 | readme=:INSTALL.html | ||
59 | readme=:install.html | ||
60 | readme=:INSTALL.htm | ||
61 | readme=:install.htm | ||
62 | readme=:INSTALL.txt | ||
63 | readme=:install.txt | ||
64 | readme=:INSTALL | ||
65 | readme=:install | ||
66 | |||
67 | ## Sort branches by date | ||
68 | branch-sort=age | ||
69 | |||
70 | ## search projects | ||
71 | section-from-path=1 | ||
72 | project-list=/opt/git/projects.list | ||
73 | scan-path=/opt/git/repositories/ | ||
74 | |||
75 | ## refs: | ||
76 | ## https://jmahler.github.io/git/2013/06/29/cgit.html | ||
77 | ## https://gitolite.com/gitolite/fool_proof_setup | ||
78 | ## https://github.com/sitaramc/gitolite | ||
79 | ## https://herrbischoff.com/2021/10/how-to-install-cgit-with-gitolite-and-nginx-on-freebsd-13/ | ||