summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2024-05-03 20:15:43 +0100
committerDmitry Ilvokhin <d@ilvokhin.com>2024-05-03 20:15:43 +0100
commit2a089c0f54e2db567ba272792a367682e326d7fd (patch)
tree733bd6b53498c59007b7f998a89829579a364989
parentb35a3a8333dd35ec378f4fdb899d2352c1f2d595 (diff)
downloadinfra-2a089c0f54e2db567ba272792a367682e326d7fd.tar.gz
infra-2a089c0f54e2db567ba272792a367682e326d7fd.tar.bz2
infra-2a089c0f54e2db567ba272792a367682e326d7fd.zip
List repositories explicitly instead of scan-path
This allowes to have private repositories on the same server.
-rw-r--r--roles/cgit/files/cgitrc21
1 files changed, 18 insertions, 3 deletions
diff --git a/roles/cgit/files/cgitrc b/roles/cgit/files/cgitrc
index b5dbf93..775b8a9 100644
--- a/roles/cgit/files/cgitrc
+++ b/roles/cgit/files/cgitrc
@@ -31,8 +31,23 @@ mimetype.pdf=application/pdf
mimetype.png=image/png
mimetype.svg=image/svg+xml
-# Automatically search for the repositories.
-scan-path=/srv/git/
-
# To fix messed up urls.
virtual-root=/
+
+# List of repositories. This is explicit list instead of scan-path to allow
+# private repositories.
+
+# Blog
+repo.url=blog.git
+repo.path=/srv/git/blog.git
+repo.desc=Code and content for blog.ilvokhin.com.
+
+# Home
+repo.url=home.git
+repo.path=/srv/git/home.git
+repo.desc=Code for ilvokhin.com.
+
+# Infra
+repo.url=infra.git
+repo.path=/srv/git/infra.git
+repo.desc=Ansible playbooks for personal infrastructure.