From bc0884bea403ed61abb4149633a33071b44fd36f Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Fri, 17 Feb 2023 11:15:38 -0800 Subject: add cgit config --- .../config/bia/ansible/roles/cgit/templates/cgitrc.j2 | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'clarkzjw.cc/config/bia/ansible/roles/cgit/templates/cgitrc.j2') diff --git a/clarkzjw.cc/config/bia/ansible/roles/cgit/templates/cgitrc.j2 b/clarkzjw.cc/config/bia/ansible/roles/cgit/templates/cgitrc.j2 index 39585fd..5504b57 100644 --- a/clarkzjw.cc/config/bia/ansible/roles/cgit/templates/cgitrc.j2 +++ b/clarkzjw.cc/config/bia/ansible/roles/cgit/templates/cgitrc.j2 @@ -1,19 +1,26 @@ ## style-sheet and custom logo -css=/cgit.css +css=/static/cgit.css logo=/cgit.png +noheader=0 +embedded=0 ## root for all cgit links virtual-root=/ ## root config -root-title={{ lookup('env', 'CGIT_DOMAIN') }} -root-desc=clarkzjw's personal git server +root-title=Clarkzjw's Git Server +root-desc= root-readme=/var/www/{{ lookup('env', 'CGIT_DOMAIN') }}/index.html +head-include=/var/www/{{ lookup('env', 'CGIT_DOMAIN') }}/head +header=/var/www/{{ lookup('env', 'CGIT_DOMAIN') }}/header +footer=/var/www/{{ lookup('env', 'CGIT_DOMAIN') }}/footer ## syntax highlighting source-filter=/usr/local/lib/cgit/filters/syntax-highlighting.py about-filter=/usr/local/lib/cgit/filters/about-formatting.sh +clone-url=https://{{ lookup('env', 'CGIT_DOMAIN') }}/$CGIT_REPO_URL git@{{ lookup('env', 'CGIT_SSH_DOMAIN') }}:$CGIT_REPO_URL + ## mimetype mimetype.gif=image/gif mimetype.html=text/html @@ -25,6 +32,7 @@ mimetype.png=image/png mimetype.svg=image/svg+xml ## features +repository-sort=age remove-suffix=1 enable-remote-branches=1 enable-index-links=1 @@ -33,6 +41,9 @@ enable-git-config=1 enable-commit-graph=1 enable-log-filecount=1 enable-log-linecount=1 +enable-http-clone=1 +enable-blame=1 +side-by-side-diffs=1 ## readme readme=:README.md -- cgit v1.2.3