summaryrefslogtreecommitdiff
path: root/auth.conf
blob: 39c755079ade7bf083965a08109cf16a47e6a3a9 (plain)
1
2
3
4
5
6
7
8
9
10
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/run/git-host/secrets/htpasswd"

$HTTP["querystring"] =~ "(^|&)service=git-receive-pack(&|$)" {
  auth.require = ("" => ("method" => "basic", "realm" => "Git Host", "require" => "valid-user"))
}

$HTTP["url"] =~ "^/git/.*/git-receive-pack$" {
  auth.require = ("" => ("method" => "basic", "realm" => "Git Host", "require" => "valid-user"))
}