aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-10-08 00:11:06 -0500
committerJesús <heckyel@hyperbola.info>2021-10-08 00:11:06 -0500
commite94f0d644da184e87724c3f2e634d6d095d0afb3 (patch)
tree32991fe0fc8b93955e11530dd85c244644383add
parent58ad76ba54f4bc0892736bd0ec08bb3c03c5c92a (diff)
downloadgitolite-cgit-docker-e94f0d644da184e87724c3f2e634d6d095d0afb3.tar.lz
gitolite-cgit-docker-e94f0d644da184e87724c3f2e634d6d095d0afb3.tar.xz
gitolite-cgit-docker-e94f0d644da184e87724c3f2e634d6d095d0afb3.zip
Add example external config gitolite-admin
-rw-r--r--README.md60
1 files changed, 60 insertions, 0 deletions
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
+```