summaryrefslogtreecommitdiff
path: root/git.rulkc.org/grokmirror/grokmirror.conf
diff options
context:
space:
mode:
Diffstat (limited to 'git.rulkc.org/grokmirror/grokmirror.conf')
-rw-r--r--git.rulkc.org/grokmirror/grokmirror.conf63
1 files changed, 63 insertions, 0 deletions
diff --git a/git.rulkc.org/grokmirror/grokmirror.conf b/git.rulkc.org/grokmirror/grokmirror.conf
new file mode 100644
index 0000000..d7f662d
--- /dev/null
+++ b/git.rulkc.org/grokmirror/grokmirror.conf
@@ -0,0 +1,63 @@
+[core]
+# Where are we going to put the mirror on our disk?
+toplevel = /var/lib/git
+
+# Where do we store our own manifest? Usually in the toplevel.
+manifest = ${toplevel}/manifest.js.gz
+
+# Where do we put the logs?
+log = /var/log/mirror/kernelorg.log
+
+# Log level can be "info" or "debug"
+loglevel = debug
+
+# To prevent multiple grok-pull instances from running at the same
+# time, we first obtain an exclusive lock.
+lock = /var/lock/mirror/kernelorg.lock
+
+# Object storage for forks (saves disk space)
+objstore = /var/lib/_objstore
+
+[remote]
+# The source mirror
+site = https://git.kernel.org
+
+# Manifest location on the remote site
+manifest = ${site}/manifest.js.gz
+
+[pull]
+# Default owner for repositories
+default_owner = Grokmirror User
+
+# Generate a project list for external tools (like cgit)
+projectslist = ${core:toplevel}/pub/scm/projects.list
+
+# Trim this prefix from paths in projectslist
+projectslist_trimtop = /pub/scm/
+
+# Use shell-globbing to list the repositories you would like to mirror.
+# If you want to mirror everything, just say "*". Separate multiple entries
+# with newline.
+#
+# mirror just the main kernel sources:
+include = /pub/scm/linux/kernel/git/torvalds/linux.git
+ /pub/scm/linux/kernel/git/stable/linux.git
+ /pub/scm/linux/kernel/git/next/linux-next.git
+
+# Exclude patterns (none for now)
+exclude =
+
+# Remove repositories not in remote manifest
+# purge =
+
+# Protect against accidental mass purge (5% threshold)
+# purgeprotect =
+
+# Number of parallel threads for fetching
+pull_threads = 10
+
+# Retry failed fetches up to 3 times
+retries = 3
+
+# Timeout for git operations (seconds)
+timeout = 100