aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-08-25 20:08:29 +0100
committerGravatar Joe Banks <[email protected]>2024-08-25 23:14:45 +0100
commit0c469ed1492a8da31804be0eb7111619ac167571 (patch)
tree737447464a3096795afab4c8f128b5475edc794b
parentAdd variables for cgit and git mirrors (diff)
Add cgitrc config template
-rw-r--r--ansible/roles/git-mirrors/templates/cgitrc.j236
1 files changed, 36 insertions, 0 deletions
diff --git a/ansible/roles/git-mirrors/templates/cgitrc.j2 b/ansible/roles/git-mirrors/templates/cgitrc.j2
new file mode 100644
index 0000000..d6aabed
--- /dev/null
+++ b/ansible/roles/git-mirrors/templates/cgitrc.j2
@@ -0,0 +1,36 @@
+# Managed by Ansible
+
+# See cgitrc(5) for details
+
+# Operational config
+cache-root=/var/cache/cgit
+
+# Web config
+css=/cgit.css
+logo={{ git_mirrors_cgit_logo }}
+favicon={{ git_mirrors_cgit_logo }}
+virtual-root=/
+root-title={{ git_mirrors_cgit_title }}
+root-desc={{ git_mirrors_cgit_description }}
+
+# Filters config
+about-filter=/usr/lib/cgit/filters/about-formatting.sh
+source-filter=/usr/lib/cgit/filters/syntax-highlighting.py
+email-filter=lua:/usr/lib/cgit/filters/email-gravatar.lua
+
+# Design options
+enable-commit-graph=1
+enable-log-linecount=1
+enable-blame=1
+enable-follow-links=1
+enable-index-owner=0
+
+# Content options
+readme=:README.md
+readme=:README.rst
+readme=:README.man
+readme=:README.txt
+
+# Repositories
+section-from-path=1
+scan-path={{ git_mirrors_base_dir }}/mirrored