summaryrefslogtreecommitdiffstats
path: root/container/auth.conf
diff options
context:
space:
mode:
authordev <dev@example>2026-11-15 13:54:31 +0000
committerdev <dev@example>2026-11-15 13:54:31 +0000
commitda06d4f56afa72ae832238f91358b9aeaeaf0da5 (patch)
tree7ead0d915bf4e388dcc55d3b63b4fc0628ef895b /container/auth.conf
parent85b7fa7f8456c84f65a0d81b760c430098ae7fd8 (diff)
downloadaccess-control-da06d4f56afa72ae832238f91358b9aeaeaf0da5.tar.gz
access-control-da06d4f56afa72ae832238f91358b9aeaeaf0da5.zip
Only build the access control executableHEADmain
The container image and all the server configuration (Dockerfile, entrypoint, cgitrc, sshd, lighttpd, create-repo, git-host-key) move to the git-host project. This repo is now just the program: cmd/, src/, test/, the Makefile that builds git-authz and installs it, and the example policy - the same cmd/src/test/obj layout the reference projects use. The CI pipeline keeps the compile-and-test gate (strict, test, sanitizer, install) and drops the container-build job, which belongs to git-host now.
Diffstat (limited to 'container/auth.conf')
-rw-r--r--container/auth.conf10
1 files changed, 0 insertions, 10 deletions
diff --git a/container/auth.conf b/container/auth.conf
deleted file mode 100644
index 39c7550..0000000
--- a/container/auth.conf
+++ /dev/null
@@ -1,10 +0,0 @@
-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"))
-}