about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-27 12:29:45 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-28 13:52:31 -0700
commit6aceddaaae1999a69d582d99335d32abda43c3fb (patch)
tree8f49b93cd68e94f801556955ff0dad2ca8dbb1eb
parentfeat(gerrit): enable sending emails (diff)
downloadworld-6aceddaaae1999a69d582d99335d32abda43c3fb.tar.gz
docs: start documenting gerrit
Change-Id: I8d00bfd71248e1403e8966d74e93941d90462b47
Reviewed-on: https://cl.fcuny.net/c/world/+/83
Reviewed-by: Franck Cuny <franck@fcuny.net>
-rw-r--r--docs/gerrit.org18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/gerrit.org b/docs/gerrit.org
new file mode 100644
index 0000000..1b48395
--- /dev/null
+++ b/docs/gerrit.org
@@ -0,0 +1,18 @@
+#+TITLE: Configuration of gerrit
+
+A gerrit instance is running at [[https://cl.fcuny.net][cl.fcuny.net]].
+
+* Permissions
+- branches other than main can be pushed to the server
+- the main branch can only be modified by gerrit
+* Secure configuration
+The file =/var/lib/gerrit/etc/secure.config= is not (yet) managed by nix. The file contains:
+#+begin_src ini
+[auth]
+  registerEmailPrivateKey = <redacted>
+[sendemail]
+  smtpUser = <fastmail user>
+  smtpPass = <fastmail SMTP password>
+[plugin "gerrit-oauth-provider-google-oauth"]
+  client-secret = <google oauth secret>
+#+end_src