about summary refs log tree commit diff
path: root/etc/conf.d/git-daemon
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>1970-01-01 03:00:00 +0300
committerAzat Bahawi <azat@bahawi.net>2022-09-20 11:52:07 +0300
commit962c35425636e3f942fd8a624369a7c53748f47e (patch)
treec69e76f6c4cdd7f9f66d02a02ee683fe4d5426e7 /etc/conf.d/git-daemon
chore: init HEAD master
Diffstat (limited to '')
-rw-r--r--etc/conf.d/git-daemon19
1 files changed, 19 insertions, 0 deletions
diff --git a/etc/conf.d/git-daemon b/etc/conf.d/git-daemon
new file mode 100644
index 0000000..69b209f
--- /dev/null
+++ b/etc/conf.d/git-daemon
@@ -0,0 +1,19 @@
+# conf.d file for git-daemon
+#
+# Please check man 1 git-daemon for more information about the options
+# git-daemon accepts. You MUST edit this to include your repositories you wish
+# to serve.
+#
+# Some of the meaningful options are:
+#   --syslog      --- Enables syslog logging
+#   --verbose     --- Enables verbose logging
+#   --export-all  --- Exports all repositories
+#   --port=XXXX   --- Starts in port XXXX instead of 9418
+#
+GITDAEMON_OPTS="--syslog --base-path=/var/git"
+
+# To run an anonymous git safely, the following user should be able to only
+# read your Git repositories. It should not be able to write to anywhere on
+# your system, esp. not the repositories.
+GIT_USER="nobody"
+GIT_GROUP="nobody"

Consider giving Nix/NixOS a try! <3