From 7f375b8097e7a44cc5924bf1cee5159593cbe0eb Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Wed, 14 Dec 2022 23:04:46 +0100 Subject: git: add role to build and start gitolite-cgit This contains a role to build and start a gitolite-cgit container. Additionally this installed a firewall rule to open the gitolite sshd port. --- roles/git/files/gitolite-cgit/etc/cgitrc | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 roles/git/files/gitolite-cgit/etc/cgitrc (limited to 'roles/git/files/gitolite-cgit/etc/cgitrc') diff --git a/roles/git/files/gitolite-cgit/etc/cgitrc b/roles/git/files/gitolite-cgit/etc/cgitrc new file mode 100644 index 0000000..e60b893 --- /dev/null +++ b/roles/git/files/gitolite-cgit/etc/cgitrc @@ -0,0 +1,32 @@ +# cgitrc(5) + +root-title=git.memzero.de +root-desc=private git repostitory + +virtual-root=/ + +enable-blame=1 +enable-git-config=1 +enable-http-clone=1 +enable-commit-graph=1 +enable-index-links=1 +enable-log-filecount=1 +enable-log-linecount=1 + +snapshots=tar.gz zip + +# -- Cosmetics + +source-filter=/usr/lib/cgit/filters/syntax-highlighting.py +about-filter=/usr/lib/cgit/filters/about-formatting.sh + +remove-suffix=1 +section-from-path=1 + +# -- Repositories +# +# Scan *scan-path* for repositories. Since *project-list* is specified before, +# only look for paths from the project list relative to the scan path. + +project-list=/var/lib/git/projects.list +scan-path=/var/lib/git/repositories -- cgit v1.2.3