aboutsummaryrefslogtreecommitdiff
path: root/services/docker/git-server/app/lighttpd/lighttpd.conf
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-03-09 17:31:21 +0800
committerYuqian Yang <crupest@crupest.life>2025-03-09 18:46:54 +0800
commitac7c3e0ab3b460a5a96df04496e6f310ef9572d0 (patch)
tree712d9f164db7623498a97b3778e2322c5d4a9752 /services/docker/git-server/app/lighttpd/lighttpd.conf
parent4915c92a8ff30439676cb328864acab050538f37 (diff)
downloadcrupest-ac7c3e0ab3b460a5a96df04496e6f310ef9572d0.tar.gz
crupest-ac7c3e0ab3b460a5a96df04496e6f310ef9572d0.tar.bz2
crupest-ac7c3e0ab3b460a5a96df04496e6f310ef9572d0.zip
feat(service): mv config to docker imagei, better pri/pub git.
Diffstat (limited to 'services/docker/git-server/app/lighttpd/lighttpd.conf')
-rw-r--r--services/docker/git-server/app/lighttpd/lighttpd.conf16
1 files changed, 13 insertions, 3 deletions
diff --git a/services/docker/git-server/app/lighttpd/lighttpd.conf b/services/docker/git-server/app/lighttpd/lighttpd.conf
index a96a778..d6c30cd 100644
--- a/services/docker/git-server/app/lighttpd/lighttpd.conf
+++ b/services/docker/git-server/app/lighttpd/lighttpd.conf
@@ -47,11 +47,21 @@ $HTTP["url"] =^ "/git" {
}
else {
alias.url += (
+ "/git/private" => "/usr/lib/cgit/cgit.cgi",
"/git" => "/usr/lib/cgit/cgit.cgi",
)
- setenv.add-environment = (
- "CGIT_CONFIG" => "/app/cgit/cgitrc"
- )
+
+ $HTTP["url"] =^ "/git/private" {
+ setenv.add-environment = (
+ "CGIT_CONFIG" => "/app/cgit/private"
+ )
+ }
+ else {
+ setenv.add-environment = (
+ "CGIT_CONFIG" => "/app/cgit/public"
+ )
+ }
+
cgi.assign = ("" => "")
}
}