aboutsummaryrefslogtreecommitdiff
path: root/docker/git-server/git-auth.conf
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-19 01:55:29 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-19 01:57:24 +0800
commit704f514d253bb3ee1a206b801d22718e9b90261b (patch)
tree32321f6f8e4ffed191aaed2720de0a294be7471a /docker/git-server/git-auth.conf
parentaea207dd3ed8f28aef0627e67a325e50138159ff (diff)
downloadcrupest-704f514d253bb3ee1a206b801d22718e9b90261b.tar.gz
crupest-704f514d253bb3ee1a206b801d22718e9b90261b.tar.bz2
crupest-704f514d253bb3ee1a206b801d22718e9b90261b.zip
feat(git-server): add git server.
Diffstat (limited to 'docker/git-server/git-auth.conf')
-rw-r--r--docker/git-server/git-auth.conf3
1 files changed, 3 insertions, 0 deletions
diff --git a/docker/git-server/git-auth.conf b/docker/git-server/git-auth.conf
new file mode 100644
index 0000000..2908bec
--- /dev/null
+++ b/docker/git-server/git-auth.conf
@@ -0,0 +1,3 @@
+auth.backend = "htpasswd"
+auth.backend.htpasswd.userfile = "/app/user-info"
+auth.require = ( "" => ("method" => "basic", "realm" => "Git Access", "require" => "valid-user") )