aboutsummaryrefslogtreecommitdiff
path: root/services/docker/git-server/app/lighttpd/auth.conf
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
commit91690b59663b89bbc3d8c7febe2b046de1424672 (patch)
tree7dbd70ca6ede7f03925b371726246cfa327e1e71 /services/docker/git-server/app/lighttpd/auth.conf
parentcb6c8080bc6c6e262a73a8d1c0d21e12ebc3906a (diff)
downloadcrupest-91690b59663b89bbc3d8c7febe2b046de1424672.tar.gz
crupest-91690b59663b89bbc3d8c7febe2b046de1424672.tar.bz2
crupest-91690b59663b89bbc3d8c7febe2b046de1424672.zip
fix(git): public/private repo problem, enable cgit for private.
Diffstat (limited to 'services/docker/git-server/app/lighttpd/auth.conf')
-rw-r--r--services/docker/git-server/app/lighttpd/auth.conf3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/docker/git-server/app/lighttpd/auth.conf b/services/docker/git-server/app/lighttpd/auth.conf
new file mode 100644
index 0000000..d643659
--- /dev/null
+++ b/services/docker/git-server/app/lighttpd/auth.conf
@@ -0,0 +1,3 @@
+auth.backend = "htpasswd"
+auth.backend.htpasswd.userfile = "/git/user-info"
+auth.require = ( "" => ("method" => "basic", "realm" => "Git Access", "require" => "valid-user") )