summaryrefslogtreecommitdiff
path: root/etc/cgitrc
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-07-10 08:08:59 +0000
committerXiao Pan <xyz@flylightning.xyz>2025-07-10 08:08:59 +0000
commit5abb40c5be90e5257cdfae51c165f00c5398f32c (patch)
tree40a115444d89d6f6c82b854c185790686d0bdb95 /etc/cgitrc
parent673c18cbf2c80de0aa5aa03b24cd026cf742412b (diff)
starting to move studio website to ca, now moving configs
Diffstat (limited to 'etc/cgitrc')
-rw-r--r--etc/cgitrc111
1 files changed, 111 insertions, 0 deletions
diff --git a/etc/cgitrc b/etc/cgitrc
new file mode 100644
index 00000000..df30d0a6
--- /dev/null
+++ b/etc/cgitrc
@@ -0,0 +1,111 @@
+# 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=Archived. Have license issues.
+
+repo.url=remote_plot
+repo.path=/var/lib/gitolite/repositories/remote_plot.git
+repo.desc=Archived. Has license issues. Plot on GUI a remote file updating using https://git.flylightning.xyz/mycan
+
+repo.url=mycan
+repo.path=/var/lib/gitolite/repositories/mycan.git
+repo.desc=Archived. Has license issues. Read CAN and write to a file.
+
+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