summaryrefslogtreecommitdiff
path: root/etc/cgitrc
blob: ae4574cd4e8f2a4b5dd485e254f73b5af7f54fb5 (plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# https://wiki.archlinux.org/title/Cgit#Configuration_of_cgit
# https://wiki.gentoo.org/wiki/User:Halcon/HOWTO_cgit_uwsgi_nginx
# `man cgitrc`

cache-size=1000
enable-index-owner=0
mimetype-file=/etc/mime.types
# https://stackoverflow.com/questions/16182421/cgit-and-nginx-url-rewrite
virtual-root=/

# useful but may makes page generation slow, maybe disable
# can see the log via `journalctl -b -u uwsgi@cgit` and search less pager with sth. like `/[0-9]{3} msecs`
#enable-blame=1
#enable-log-filecount=1
#enable-log-linecount=1
# showing branch merge, ex: https://git.flylightning.xyz/dwm_fly/log/?h=fly
#enable-commit-graph=1

# not very useful, maybe disable
#enable-follow-links=1
#enable-subject-links=1

# `man cgitrc` uses $CGIT_REPO_URL instead of $CGIT_REPO_NAME, I guess maybe because repo name can be different from repo url?
clone-url=https://$HTTP_HOST/$CGIT_REPO_URL https://codeberg.org/flyxyz123/$CGIT_REPO_URL
# $HTTP_HOST not working for clone-prefix, not sure why, therefore I prefer clone-url over clone-prefix
#clone-prefix=https://git.flylightning.xyz/ https://codeberg.org/flyxyz123/

source-filter=/usr/lib/cgit/filters/syntax-highlighting-edited.sh
css=/mycgit.css

about-filter=/usr/lib/cgit/filters/about-formatting-edited.sh
#readme=:README.markdown
#readme=:readme.markdown
#readme=:README.mdown
#readme=:readme.mdown
readme=:README.md
#readme=:readme.md
#readme=:README.mkd
#readme=:readme.mkd
#readme=:README.rst
#readme=:readme.rst
#readme=:README.html
#readme=:readme.html
#readme=:README.htm
#readme=:readme.htm
#readme=:README.txt
#readme=:readme.txt
readme=:README
#readme=:readme
#readme=:INSTALL.markdown
#readme=:install.markdown
#readme=:INSTALL.mdown
#readme=:install.mdown
#readme=:INSTALL.md
#readme=:install.md
#readme=:INSTALL.mkd
#readme=:install.mkd
#readme=:INSTALL.rst
#readme=:install.rst
#readme=:INSTALL.html
#readme=:install.html
#readme=:INSTALL.htm
#readme=:install.htm
#readme=:INSTALL.txt
#readme=:install.txt
#readme=:INSTALL
#readme=:install

root-title=flylightning.xyz git repositories
root-desc=

repo.url=config_local_arch
repo.path=/var/lib/gitolite/repositories/config_local_arch.git
repo.desc=Device dependent config files for Arch Linux, managed by https://git.flylightning.xyz/fsh/tree/sh/cfg (git bare repo method)

repo.url=xcross
repo.path=/var/lib/gitolite/repositories/xcross.git
repo.desc=X11 draw a cross at cursor across screen

repo.url=public_archive_codes
repo.path=/var/lib/gitolite/repositories/public_archive_codes.git
repo.desc=My mostly not used, not maintained, archived codes/configs

repo.url=fly
repo.path=/var/lib/gitolite/repositories/fly.git
repo.desc=Arch Linux custom local repository

repo.url=aur
repo.path=/var/lib/gitolite/repositories/aur.git
repo.desc=PKGBUILDs I maintain for AUR

repo.url=fsh
repo.path=/var/lib/gitolite/repositories/fsh.git
repo.desc=My shell utilities

section=forks

repo.url=dwm_fly
repo.path=/var/lib/gitolite/repositories/dwm_fly.git
repo.desc=My fork of https://git.suckless.org/dwm
#repo.readme=:dwm.1