From ac89b3c715fd3eddca7898e069ee04498c1a1ba2 Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Fri, 24 Apr 2026 23:36:52 +0200 Subject: INITIAL COMMIT --- auth.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 auth.conf (limited to 'auth.conf') diff --git a/auth.conf b/auth.conf new file mode 100644 index 0000000..39c7550 --- /dev/null +++ b/auth.conf @@ -0,0 +1,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")) +} -- cgit v1.2.3