From 1152d4b300cd5ff03c5642fce71bda53b5baaa6d Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sat, 26 Jul 2025 20:03:08 +0100 Subject: Make smart http git protocol work without authentication Ask to authenticate only when trying to push to repository. All other operations do not require authentication anymore. Http protocol is still not fully usable, because of the git (git) and fcgiwrap (http) are running under different user. `GIT_HTTP_EXPORT_ALL` was removed to forbid export of private repositories via http protocol. --- roles/gitserver/files/gitconfig | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 roles/gitserver/files/gitconfig (limited to 'roles/gitserver/files/gitconfig') diff --git a/roles/gitserver/files/gitconfig b/roles/gitserver/files/gitconfig new file mode 100644 index 0000000..3209b9f --- /dev/null +++ b/roles/gitserver/files/gitconfig @@ -0,0 +1,2 @@ +[safe] + directory = /srv/git/* -- cgit v1.2.3-70-g09d2