From e94f0d644da184e87724c3f2e634d6d095d0afb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Fri, 8 Oct 2021 00:11:06 -0500 Subject: Add example external config gitolite-admin --- README.md | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/README.md b/README.md index b3d9b60..c91685b 100644 --- a/README.md +++ b/README.md @@ -160,3 +160,63 @@ $ cd gitolite-cgit-docker/gitolite-cgit ```console $ docker build --tag rusian/gitolite-cgit -f Dockerfile . ``` + +## Extra + +Example of `gitolite-admin/conf/gitolite.conf`: + +```conf +#----------- +# General +#----------- +@secret = gitolite-admin +@hiddenrepo = gitolite-admin + +#----------- +# People +#----------- +@p-admin = paco +@p-team = minoru + +#---------------------- +# Repositories +#---------------------- +repo @hiddenrepo + config cgit.ignore = 1 + +repo @secret + - = cgit daemon + option deny-rules = 1 + +repo @all + R = cgit daemon + +repo gitolite-admin + RW+ = @p-admin + +repo science/numeral + RW+ = @p-admin + - master develop = @p-team + - refs/tags/v[0-9] = @p-team + RW+ = @p-team + desc = "Repo paco files" + config gitweb.owner = paco + +repo documents/operators + RW+ = @p-admin + - master develop = @p-team + - refs/tags/v[0-9] = @p-team + RW+ = @p-team + desc = "Repo minoru files" + config gitweb.owner = minoru + +#------------------------ +# Personal repositories +#------------------------ +repo CREATOR/[a-zA-Z0-9].* + C = @p-admin @p-team + RW+ = CREATOR + RW+ = @p-admin + R = @all + config gitweb.owner = %GL_CREATOR +``` -- cgit v1.2.3