From ba4da49423faaf49500f1b3366909e404f7862ff Mon Sep 17 00:00:00 2001 From: Malfurious Date: Fri, 15 Sep 2023 13:03:34 -0400 Subject: cgit: Consolidate config files into a single directory Continue cleaning the folder structure from the previous merge. Signed-off-by: Malfurious --- cgit/cgitrc | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 cgit/cgitrc (limited to 'cgit/cgitrc') diff --git a/cgit/cgitrc b/cgit/cgitrc new file mode 100644 index 0000000..6df01d2 --- /dev/null +++ b/cgit/cgitrc @@ -0,0 +1,38 @@ +# cgit config +# see cgitrc(5) for details +# +# possible todos: header, footer + +css=/cgit.css +logo=/cgit.png +logo-link=/ + +root-title=NormalMode.org Repositories +root-desc=Public repositories hosted on normalmode.org + +clone-url=https://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL ssh://gitolite@$HTTP_HOST/$CGIT_REPO_URL + +enable-blame=1 +enable-follow-links=1 +enable-git-config=1 +enable-http-clone=1 +enable-index-links=1 +enable-index-owner=1 +enable-log-filecount=1 +enable-log-linecount=1 +enable-tree-linenumbers=1 + +section-sort=1 +repository-sort=age +branch-sort=age +agefile=agefile + +max-repo-count=512 +max-stats=year + +snapshots=tar.gz zip +remove-suffix=1 +section-from-path=-1 +strict-export=gl-creator + +scan-path=/data/repositories/ -- cgit v1.2.3 From 5dc31a2d88cb799e487c4aacfe1b4be32e59d391 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Sat, 16 Sep 2023 06:46:29 -0400 Subject: cgit: Update scan-path / repository mount location Since the data volume now only contains git repositories, rather than the whole gitolite host home directory, there is no need to mount to a nested path. Anticipate moving the mount point, and change the cgit scan path to /repositories. Signed-off-by: Malfurious --- cgit/cgitrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cgit/cgitrc') diff --git a/cgit/cgitrc b/cgit/cgitrc index 6df01d2..fca5fec 100644 --- a/cgit/cgitrc +++ b/cgit/cgitrc @@ -35,4 +35,4 @@ remove-suffix=1 section-from-path=-1 strict-export=gl-creator -scan-path=/data/repositories/ +scan-path=/repositories/ -- cgit v1.2.3 From 51b47c3d0eb8e9c638d002aec566ef158ff5d0cd Mon Sep 17 00:00:00 2001 From: Malfurious Date: Sat, 16 Sep 2023 06:47:56 -0400 Subject: cgit: Update SSH clone URLs The username used to access gitolite has changed from 'gitolite' to 'git'. Reflect this in the cgit UI. Signed-off-by: Malfurious --- cgit/cgitrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cgit/cgitrc') diff --git a/cgit/cgitrc b/cgit/cgitrc index fca5fec..34bbe81 100644 --- a/cgit/cgitrc +++ b/cgit/cgitrc @@ -10,7 +10,7 @@ logo-link=/ root-title=NormalMode.org Repositories root-desc=Public repositories hosted on normalmode.org -clone-url=https://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL ssh://gitolite@$HTTP_HOST/$CGIT_REPO_URL +clone-url=https://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL ssh://git@$HTTP_HOST/$CGIT_REPO_URL enable-blame=1 enable-follow-links=1 -- cgit v1.2.3