aboutsummaryrefslogtreecommitdiff
path: root/services/templates
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-03-07 19:15:31 +0800
committerYuqian Yang <crupest@crupest.life>2025-03-07 19:44:36 +0800
commit3d3979934da0cfd514a0ef900f0f6fb573ceb917 (patch)
tree4ceece0bcadb6dce18e29a02af6a6ba2d30df242 /services/templates
parent2c26c4d44142dc1a4739eb28b0d8077f37161a72 (diff)
downloadcrupest-3d3979934da0cfd514a0ef900f0f6fb573ceb917.tar.gz
crupest-3d3979934da0cfd514a0ef900f0f6fb573ceb917.tar.bz2
crupest-3d3979934da0cfd514a0ef900f0f6fb573ceb917.zip
fix(git): public/private repo problem, enable cgit for private.
Diffstat (limited to 'services/templates')
-rw-r--r--services/templates/cgit/cgitrc.template (renamed from services/templates/cgitrc.template)7
-rw-r--r--services/templates/cgit/private-list1
-rw-r--r--services/templates/docker-compose.yaml.template2
3 files changed, 8 insertions, 2 deletions
diff --git a/services/templates/cgitrc.template b/services/templates/cgit/cgitrc.template
index 45ee262..ed581bd 100644
--- a/services/templates/cgitrc.template
+++ b/services/templates/cgit/cgitrc.template
@@ -16,6 +16,11 @@ snapshots=tar.gz tar.bz2 zip
readme=:README.md
readme=:README
-clone-prefix=@@CRUPEST_ROOT_URL@@git/
+clone-prefix=@@CRUPEST_ROOT_URL@@git
section-from-path=1
scan-path=/git/repos/public
+
+strict-export=cgit-export
+section-from-path=-1
+project-list=/app/cgit/private-list
+scan-path=/git/repos
diff --git a/services/templates/cgit/private-list b/services/templates/cgit/private-list
new file mode 100644
index 0000000..c8c6761
--- /dev/null
+++ b/services/templates/cgit/private-list
@@ -0,0 +1 @@
+private \ No newline at end of file
diff --git a/services/templates/docker-compose.yaml.template b/services/templates/docker-compose.yaml.template
index 3523023..842037b 100644
--- a/services/templates/docker-compose.yaml.template
+++ b/services/templates/docker-compose.yaml.template
@@ -84,7 +84,7 @@ services:
hostname: git-server
volumes:
- "./@@CRUPEST_DATA_GIT_DIR@@:/git"
- - "./@@CRUPEST_GENERATED_DIR@@/cgitrc:/etc/cgitrc:ro"
+ - "./@@CRUPEST_GENERATED_DIR@@/cgit:/app/cgit"
restart: on-failure:3
roundcubemail: