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.conf8
1 files changed, 5 insertions, 3 deletions
diff --git a/services/docker/git-server/git-lighttpd.conf b/services/docker/git-server/git-lighttpd.conf
index d284ee1..44e0fd6 100644
--- a/services/docker/git-server/git-lighttpd.conf
+++ b/services/docker/git-server/git-lighttpd.conf
@@ -1,6 +1,6 @@
server.modules += ("mod_accesslog")
server.modules += ("mod_auth", "mod_authn_file", "mod_access")
-server.modules += ("mod_setenv", "mod_cgi", "mod_alias")
+server.modules += ("mod_alias", "mod_setenv", "mod_cgi")
server.port = 3636
server.document-root = "/var/www/html/"
@@ -20,7 +20,8 @@ $HTTP["url"] =^ "/git" {
$HTTP["url"] =~ "^/git/.*/git-receive-pack$" {
include "git-auth.conf"
}
- alias.url += ( "/git" => "/usr/lib/git-core/git-http-backend" )
+ alias.url += ( "/git/private" => "/usr/lib/git-core/git-http-backend/private" )
+ alias.url += ( "/git" => "/usr/lib/git-core/git-http-backend/public" )
setenv.add-environment = (
"GIT_PROJECT_ROOT" => "/git/repos",
"GIT_HTTP_EXPORT_ALL" => ""
@@ -29,7 +30,8 @@ $HTTP["url"] =^ "/git" {
}
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/repos",
+ "/git/private" => "/git/repos/private",
+ "/git" => "/git/repos/public",
)
}
else $HTTP["url"] =^ "/git/static" {