From be92c6854fcaf1f6e837a57598bb12cd9537b0a2 Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Fri, 3 May 2024 21:20:07 +0100 Subject: Open git.ilvokhin.com to the world --- roles/gitserver/files/git.conf | 3 +++ 1 file changed, 3 insertions(+) (limited to 'roles/gitserver/files/git.conf') diff --git a/roles/gitserver/files/git.conf b/roles/gitserver/files/git.conf index 1434cda..3d6d6a3 100644 --- a/roles/gitserver/files/git.conf +++ b/roles/gitserver/files/git.conf @@ -1,6 +1,9 @@ # Source: https://gist.github.com/kierdwyn/3745400e6a184f621b92 location ~ /.+/(info/refs|git-upload-pack|git-receive-pack) { + auth_basic "Restricted"; + auth_basic_user_file /etc/nginx/auth/git/.htpasswd; + # Set chunks to unlimited, as the body's can be huge. client_max_body_size 0; -- cgit v1.2.3-70-g09d2