aboutsummaryrefslogtreecommitdiff
path: root/services/docker/git-server/git-lighttpd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'services/docker/git-server/git-lighttpd.conf')
-rw-r--r--services/docker/git-server/git-lighttpd.conf9
1 files changed, 5 insertions, 4 deletions
diff --git a/services/docker/git-server/git-lighttpd.conf b/services/docker/git-server/git-lighttpd.conf
index 567303a..d284ee1 100644
--- a/services/docker/git-server/git-lighttpd.conf
+++ b/services/docker/git-server/git-lighttpd.conf
@@ -10,9 +10,10 @@ $HTTP["url"] =^ "/git" {
mimetype.assign = ( ".css" => "text/css" )
$HTTP["url"] =^ "/git/private" {
- url.access-deny = ("")
+ include "git-auth.conf"
}
- else $HTTP["url"] =~ "^/git/.*/(HEAD|info/refs|objects/info/[^/]+|git-(upload|receive)-pack)$" {
+
+ $HTTP["url"] =~ "^/git/.*/(HEAD|info/refs|objects/info/[^/]+|git-(upload|receive)-pack)$" {
$HTTP["querystring"] =~ "service=git-receive-pack" {
include "git-auth.conf"
}
@@ -21,14 +22,14 @@ $HTTP["url"] =^ "/git" {
}
alias.url += ( "/git" => "/usr/lib/git-core/git-http-backend" )
setenv.add-environment = (
- "GIT_PROJECT_ROOT" => "/git",
+ "GIT_PROJECT_ROOT" => "/git/repos",
"GIT_HTTP_EXPORT_ALL" => ""
)
cgi.assign = ("" => "")
}
else $HTTP["url"] =~ "^/git/.*/((objects/[0-9a-f]{2}/[0-9a-f]{38})|(pack/pack-[0-9a-f]{40}.(pack|idx)))$" {
alias.url += (
- "/git" => "/git",
+ "/git" => "/git/repos",
)
}
else $HTTP["url"] =^ "/git/static" {