diff options
Diffstat (limited to 'services/docker/git-server/app/lighttpd/lighttpd.conf')
-rw-r--r-- | services/docker/git-server/app/lighttpd/lighttpd.conf | 16 |
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 = ("" => "") } } |