summaryrefslogtreecommitdiff
path: root/samples/example-mirrors.txt
diff options
context:
space:
mode:
Diffstat (limited to 'samples/example-mirrors.txt')
-rw-r--r--samples/example-mirrors.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/samples/example-mirrors.txt b/samples/example-mirrors.txt
index c02583e..d511e38 100644
--- a/samples/example-mirrors.txt
+++ b/samples/example-mirrors.txt
@@ -1,4 +1,23 @@
+# Example mirror configuration file.
+#
+# Add a "Mirror" command like this for every mirror that you want to list.
+#
+# The "name" is a helpful name of the mirror.
+#
+# The "urlbase" is the top-level of this mirror's copy of the repository.
+# For example, if urlbase is http://foo.bar/baz/, then Thandy will expect
+# to find the keylist at http://foo.bar/baz/meta/keys.txt.
+#
+# The "contents" list should contain a list of file paths patterns for
+# which parts of the repository can be found at this mirror. For example,
+# if this list is [ "/meta/*", "/pkginfo/tor/**" ], then this mirror
+# keeps up-to-date copies of all files in /meta/, and all files in any
+# subdirectory of "/pkginfo/tor".
+#
+# The "weight" field is an INTEGER representing the relative weight with which
+# we should pick this mirror.
+
Mirror(name="moria",
urlbase="http://moria.seul.org/thandy-example/",
contents=[ "**" ],