From ce6ff9c1ad24b63851b736021e898da7e287d146 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 20 Jun 2020 21:52:30 +0200 Subject: update cgit config, to strip .git suffix from projects, and parse README.md with cmark --- cgit/cgitrc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 cgit/cgitrc (limited to 'cgit/cgitrc') diff --git a/cgit/cgitrc b/cgit/cgitrc new file mode 100644 index 0000000..596265d --- /dev/null +++ b/cgit/cgitrc @@ -0,0 +1,21 @@ +# +# cgit config +# see cgitrc(5) for details + +css=/cgit-css/cgit.css +logo=/cgit-css/cgit.png + +remove-suffix=1 + +clone-url=git://$HTTP_HOST/$CGIT_REPO_URL user@$HTTP_HOST:$CGIT_REPO_URL https://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL http://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL + +source-filter=/usr/lib/cgit/filters/syntax-highlighting.sh + +# requires cmark +about-filter=/etc/local-COMMON/cgit/filters/about-formatting.sh +readme=:README.md + +cache-size=1000 + +# must be last! +scan-path=$DOCUMENT_ROOT -- cgit v1.2.3